From 15ce048ca21ad517e27ab598d861ae07f817067d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 23 Dec 2020 09:44:31 +0200 Subject: feat! add a global --config option This breaks all invocations of the Obnam client, as the option needs to come before the subcommand name. The benefit of this breakage is simpler, less repetitive code. --- obnam.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'obnam.md') diff --git a/obnam.md b/obnam.md index 057996d..fbbf994 100644 --- a/obnam.md +++ b/obnam.md @@ -795,11 +795,11 @@ and a running chunk server and a client config based on smoke.yaml and a file live/data.dat containing some random data and a manifest of the directory live in live.yaml -when I run obnam backup smoke.yaml +when I run obnam --config smoke.yaml backup then backup generation is GEN -when I run obnam list smoke.yaml +when I run obnam --config smoke.yaml list then generation list contains -when I invoke obnam restore smoke.yaml rest +when I invoke obnam --config smoke.yaml restore rest given a manifest of the directory live restored in rest in rest.yaml then files live.yaml and rest.yaml match ~~~ @@ -832,9 +832,9 @@ and a running chunk server and a client config based on metadata.yaml and a file live/data.dat containing some random data and a manifest of the directory live in live.yaml -when I run obnam backup metadata.yaml +when I run obnam --config metadata.yaml backup then backup generation is GEN -when I invoke obnam restore metadata.yaml rest +when I invoke obnam --config metadata.yaml restore rest given a manifest of the directory live restored in rest in rest.yaml then files live.yaml and rest.yaml match ~~~ @@ -851,9 +851,9 @@ and a client config based on metadata.yaml and a file live/data.dat containing some random data and file live/data.dat has mode 464 and a manifest of the directory live in live.yaml -when I run obnam backup metadata.yaml +when I run obnam --config metadata.yaml backup then backup generation is GEN -when I invoke obnam restore metadata.yaml rest +when I invoke obnam --config metadata.yaml restore rest given a manifest of the directory live restored in rest in rest.yaml then files live.yaml and rest.yaml match ~~~ @@ -869,9 +869,9 @@ and a client config based on metadata.yaml and a file live/data.dat containing some random data and symbolink link live/link that points at data.dat and a manifest of the directory live in live.yaml -when I run obnam backup metadata.yaml +when I run obnam --config metadata.yaml backup then backup generation is GEN -when I invoke obnam restore metadata.yaml rest +when I invoke obnam --config metadata.yaml restore rest given a manifest of the directory live restored in rest in rest.yaml then files live.yaml and rest.yaml match ~~~ -- cgit v1.2.1