diff options
| author | Shulhan <ms@kilabit.info> | 2025-10-03 00:15:29 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-10-03 00:15:29 +0700 |
| commit | 1003a18b85cffac4b9a92ee787fd8a9bdfca072d (patch) | |
| tree | 2090d7c2b84dbd4cc39956145af3c070ba98f7ee /_wui | |
| parent | 276096698be34a7c629b3fe7bfd79c48e1c24921 (diff) | |
| download | awwan-1003a18b85cffac4b9a92ee787fd8a9bdfca072d.tar.xz | |
all: add option "$noparse" for magic "#put" command
The "$noparse" option allow copying file without reading and parsing
the input file.
Diffstat (limited to '_wui')
| -rw-r--r-- | _wui/doc/awwan.adoc | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/_wui/doc/awwan.adoc b/_wui/doc/awwan.adoc index 07dfbcb..f8cdfa6 100644 --- a/_wui/doc/awwan.adoc +++ b/_wui/doc/awwan.adoc @@ -359,7 +359,7 @@ The magic word "#put" copy file from your local to remote server. Syntax, ---- - PUT = "#put" (":"/"!") [OWNER] ["+" PERM] SP LOCAL_PATH SP REMOTE_PATH + PUT = "#put" (":"/"!") [OWNER] ["+" PERM] *(OPT) SP LOCAL_PATH SP REMOTE_PATH OWNER = [ USER ] [ ":" GROUP ] @@ -368,6 +368,8 @@ OWNER = [ USER ] [ ":" GROUP ] OCTAL = "0" ... "7" SP = " " / "\t" ; Space characters. + + OPT = "$noparse" ---- For example, @@ -415,6 +417,27 @@ $ sudo chmod 0600 remote/dst $ sudo chown root:bin remote/dst ---- +The "#put" command have the following options, + +`$noparse`:: Skip parsing the input file. ++ +-- +The input file will be copied as is without parsing and replacing session +variables inside the file. +This is useful if the input file contains "{{}}" string. + +For example, +---- +#put:$noparse src dst +---- +If the content of "src" is + + Hello {{.world}} + +then the "dst" file also has the same content. +-- + + === Magic word "#local" The magic word "#local" define the command to be executed in the local |
