mirror of
https://codeberg.org/scip/anydb.git
synced 2025-12-17 12:31:02 +01:00
51 lines
883 B
Plaintext
51 lines
883 B
Plaintext
|
|
# simple entry
|
||
|
|
exec anydb -f test.db set foo bar
|
||
|
|
|
||
|
|
# entry with tags
|
||
|
|
exec anydb -f test.db set color grey -t flower,plant
|
||
|
|
|
||
|
|
# simple list
|
||
|
|
exec anydb -f test.db list
|
||
|
|
stdout foo.*bar
|
||
|
|
|
||
|
|
# wide list
|
||
|
|
exec anydb -f test.db list -o wide
|
||
|
|
stdout 'plant.*now.*grey'
|
||
|
|
|
||
|
|
# list tagged
|
||
|
|
exec anydb -f test.db list -t flower
|
||
|
|
! stdout bar
|
||
|
|
|
||
|
|
# list with filter
|
||
|
|
exec anydb -f test.db list b.r
|
||
|
|
stdout bar
|
||
|
|
|
||
|
|
# get single entry
|
||
|
|
exec anydb -f test.db get color
|
||
|
|
stdout grey
|
||
|
|
|
||
|
|
# modify
|
||
|
|
exec anydb -f test.db set foo blah
|
||
|
|
|
||
|
|
# check modified
|
||
|
|
exec anydb -f test.db get foo
|
||
|
|
stdout blah
|
||
|
|
|
||
|
|
# modify tagged
|
||
|
|
exec anydb -f test.db set color grey -t butterfly
|
||
|
|
|
||
|
|
# check modified tagged
|
||
|
|
exec anydb -f test.db list -t butterfly
|
||
|
|
stdout grey
|
||
|
|
|
||
|
|
# check modified tagged, make sure
|
||
|
|
exec anydb -f test.db list -t flower
|
||
|
|
! stdout grey
|
||
|
|
|
||
|
|
# delete entry
|
||
|
|
exec anydb -f test.db del foo
|
||
|
|
|
||
|
|
# check deleted
|
||
|
|
exec anydb -f test.db list
|
||
|
|
! stdout bar
|