forked from janek/mostr
feat: allow removing property column by index
This commit is contained in:
parent
860c3080b2
commit
87cdecbeee
|
@ -169,6 +169,10 @@ async fn main() {
|
|||
|
||||
Some(':') => match input[1..2].parse::<usize>() {
|
||||
Ok(index) => {
|
||||
if input.len() == 2 {
|
||||
tasks.properties.remove(index);
|
||||
continue;
|
||||
}
|
||||
let value = input[2..].to_string();
|
||||
if tasks.properties.get(index) == Some(&value) {
|
||||
tasks.properties.remove(index);
|
||||
|
|
Loading…
Reference in New Issue