diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-17 03:18:52 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-17 03:18:52 +0700 |
| commit | 19f5053c19bdd2f9f4f764eb17ef0f096eb87f3e (patch) | |
| tree | 2c6553269f2c3d562fb9f0f7950268c90dd6a198 /_wui/doc | |
| parent | 68cbc52f2195063a0b4c9ce8c6c4cf030182c53a (diff) | |
| download | awwan-19f5053c19bdd2f9f4f764eb17ef0f096eb87f3e.tar.xz | |
all: implement command "env-get" to get value from environment files
The env-get command get the value from environment files.
Syntax,
----
<key> [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.
Diffstat (limited to '_wui/doc')
| -rw-r--r-- | _wui/doc/awwan.adoc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/_wui/doc/awwan.adoc b/_wui/doc/awwan.adoc index 781d299..d2a264e 100644 --- a/_wui/doc/awwan.adoc +++ b/_wui/doc/awwan.adoc @@ -126,6 +126,31 @@ Encrypted file output: secret.txt.vault $ ---- +=== Command env-get + +The env-get command get the value from environment files. +Syntax, + +---- +<key> [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 +myhost +---- + === Command env-set The env-set command set the value of environment file. |
