From 0d8094967d7b07c832f798756e2b6d5609e7babc Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 22 Apr 2021 18:01:09 +0300 Subject: feat: expand tilde notation in configuration file Backup roots and log file can now say ~/foo/bar to refer to files relative to the user's home directory. --- obnam.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'obnam.md') diff --git a/obnam.md b/obnam.md index e788d96..3050463 100644 --- a/obnam.md +++ b/obnam.md @@ -1122,6 +1122,29 @@ encrypt: false ~~~ +## Client expands tildes in its configuration file + +This scenario verifies that the client expands tildes in pathnames in +its configuration file. + + +~~~scenario +given an installed obnam +and file tilde.yaml +when I run obnam --config tilde.yaml config +then stdout contains home directory followed by /important +then stdout contains home directory followed by /obnam.log +~~~ + +~~~{#tilde.yaml .file .yaml .numberLines} +roots: [~/important] +log: ~/obnam.log +server_url: https://backup.example.com +verify_tls_cert: true +encrypt: false +~~~ + + ## Client requires https This scenario verifies that the client rejects a configuration with a -- cgit v1.2.1