summaryrefslogtreecommitdiff
path: root/clab.md
diff options
context:
space:
mode:
Diffstat (limited to 'clab.md')
-rw-r--r--clab.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/clab.md b/clab.md
index de09758..5893fa7 100644
--- a/clab.md
+++ b/clab.md
@@ -1,3 +1,4 @@
+
---
title: "clab; – command line address book"
author: Lars Wirzenius
@@ -75,6 +76,20 @@ then stdout is exactly "clab found matches:\nalice@example.com\tAlice Atherthon\
last_checked: 2021-09
~~~
+~~~{#address-book-reformatted .file .yaml}
+---
+- name: Alice Atherthon
+ email:
+ work: alice@example.com
+ tags:
+ - co-worker
+ last_checked: 2021-09
+- name: Bob Bobbington
+ email:
+ personal: bob@example.com
+ last_checked: 2021-09
+~~~
+
# Search by tag
@@ -108,3 +123,18 @@ then command is successful
then stdout contains "Alice Atherthon"
then stdout contains "Bob"
~~~
+
+# Reformat address book
+
+This scenario verifies that `clab` can reformat the address book in
+place.
+
+~~~scenario
+given an installed clab
+given file .local/share/clab/address-book.yaml from address-book.yaml
+given file reformatted.yaml from address-book-reformatted
+
+when I run clab reformat
+then command is successful
+then files .local/share/clab/address-book.yaml and reformatted.yaml match
+~~~