diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-10-04 14:33:03 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-10-04 14:33:03 +0000 |
commit | acae9764fd617a57858cde5c764df2b98d3a0179 (patch) | |
tree | ecbe230cde864aaf67ce8a4903f7811dc412e36d /clab.md | |
parent | a44d3847590e5c24c78b2b129c464bd80b0d29ab (diff) | |
parent | 9e9ed659650a2c8af9c3c8c8e0f6c23a6c45f090 (diff) | |
download | clab-acae9764fd617a57858cde5c764df2b98d3a0179.tar.gz |
Merge branch 'tags' into 'main'
feat: allow optional tagging of address book entries
Closes #6
See merge request larswirzenius/clab!6
Diffstat (limited to 'clab.md')
-rw-r--r-- | clab.md | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -67,6 +67,7 @@ then stdout is exactly "clab found matches:\nalice@example.com\tAlice Atherthon\ - name: Alice Atherthon email: work: alice@example.com + tags: [co-worker] last_checked: 2021-09 - name: Bob Bobbington email: @@ -75,6 +76,20 @@ then stdout is exactly "clab found matches:\nalice@example.com\tAlice Atherthon\ ~~~ +# Search by tag + +This scenario verifies that `clab` can find entries based on tags. + +~~~scenario +given an installed clab +given file .local/share/clab/address-book.yaml from address-book.yaml + +when I run clab tagged co-worker +then command is successful +then stdout contains "Alice Atherthon" +then stdout doesn't contain "Bob" +~~~ + # Full text search This scenario verifies that `clab` does a full text search. |