Closed pylipp closed 1 year ago
Maybe not pretty due to overhead for file IO but completely fine:
for i in 1 2 5; do fina remove $i; done
for i in $(seq 4 8); do fina update $i -c new-category; done
To facilitate batch removing/updating suggested above, a new flag for the list
command would be helpful, like
fina list -f category=foo --ids # output: newline separated IDs
for i in $(fina list -f category=foo --ids); do fina update $i --category bar; done
Tricky: handling of standard/recurrent entries.
Alternative:
--filter
option for update/remove command--raw
option for list command to output response JSON, and post-process it with jq
or similar
In the form of
Supported by tinydb: https://tinydb.readthedocs.io/en/latest/usage.html#id2