diff options
| author | Shulhan <ms@kilabit.info> | 2024-01-14 19:55:22 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-01-16 00:09:23 +0700 |
| commit | 7e2dafcd14bad895e7846891aca25504b0d4620c (patch) | |
| tree | 6510d0773e62cfc7e7ea2821e8844a7b08dc4b5a /_wui | |
| parent | 61c31da5b6a84ae1d0857b8e676e5683b8f8c245 (diff) | |
| download | awwan-7e2dafcd14bad895e7846891aca25504b0d4620c.tar.xz | |
all: refactoring env-get command
This changes the order of arguments of env-get command to pass the
directory first before the key.
The reason is to simplify auto-completion later from the command line.
Diffstat (limited to '_wui')
| -rw-r--r-- | _wui/doc/awwan.adoc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/_wui/doc/awwan.adoc b/_wui/doc/awwan.adoc index e44ec32..cc1f532 100644 --- a/_wui/doc/awwan.adoc +++ b/_wui/doc/awwan.adoc @@ -24,7 +24,7 @@ command = "decrypt" / "encrypt" / "help" / "local" / "play" / "serve" Encrypt the file using RSA private key at "<workspace>/.ssh/awwan.key". - env-get <key> [dir] + env-get <dir> <key> Get the value from environment based on the key. env-set <key> <value> [env-file] @@ -135,22 +135,21 @@ The env-get command get the value from environment files. Syntax, ---- -<key> [dir] +<dir> <key> ---- +The "dir" argument define the directory where environment files ("awwan.env" +and/or ".awwan.env.vault") will be loaded, recursively, from BaseDir to dir. + The "key" argument define the key where value is stored in environment using "section:sub:name" format. -The "dir" argument is optional, its define the directory where environment -files will be loaded, recursively, from BaseDir to dir. -If its empty default to the current directory. - If the key is not exist it will return an empty string. For example, to get the value of "name" under section "host", run ---- -$ awwan env-get host::name +$ awwan env-get . host::name myhost ---- |
