From 425530b55ef4712a38177d133693c7601824c8dd Mon Sep 17 00:00:00 2001 From: vitalii Date: Mon, 22 Oct 2018 08:29:10 +0300 Subject: [PATCH] cmd: readme was updated. closes studio-b12/gowebdav#27 Wrapper script section was updated --- cmd/gowebdav/README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cmd/gowebdav/README.md b/cmd/gowebdav/README.md index 1f20a4a..30e1d4c 100644 --- a/cmd/gowebdav/README.md +++ b/cmd/gowebdav/README.md @@ -76,10 +76,7 @@ gowebdav -X DEL temp/file.txt # Wrapper script -Create a wrapper script for example `$EDITOR ./dav && chmod a+x ./dav` for your -server and use [pass](https://www.passwordstore.org/ "the standard unix password manager") -or similar tools to retrieve the password. - +You can create wrapper script for your server (via `$EDITOR ./dav && chmod a+x ./dav`) and add following content to it: ```sh #!/bin/sh @@ -89,6 +86,8 @@ PASSWORD="$(pass dav/foo@my.dav.server)" \ gowebdav $@ ``` +It allows you to use [pass](https://www.passwordstore.org/ "the standard unix password manager") or similar tools to retrieve the password. + ## Examples Using the `dav` wrapper: @@ -97,12 +96,8 @@ Using the `dav` wrapper: $ ./dav -X LS / $ echo hi dav! > hello && ./dav -X PUT /hello - $ ./dav -X STAT /hello - $ ./dav -X PUT /hello_dav hello - $ ./dav -X GET /hello_dav - $ ./dav -X GET /hello_dav hello.txt ``` \ No newline at end of file