| tag name | v0.2.0 (d77c8be31a6ca9879bfe7d755e756925c62b911a) |
| tag date | 2020-07-05 20:33:15 +0700 |
| tagged by | Shulhan <m.shulhan@gmail.com> |
| tagged object | commit 6937724370... |
| download | awwan-0.2.0.tar.xz |
|---|
Release awwan 0.2.0 (2020.07.05)
=== New features
* environment: export the SSH key, user, host, and port
By knowing this values, user can use it to invoke other SSH related
command, for example to copy file using `scp`
scp -i {{.SSHKey}} src {{.SSHUser}}@{{.SSHHost}}:{{.SSHPort}}/dst
* all: add magic command "#require:"
Magic word `#require:` will ensure that the next statement will always
executed when its skipped with start number.
For example, given following script with line number
1: #require:
2: echo a
3: echo b
4: #require:
5: echo c
```
executing `awwan local script.aww 3`, will always execute line
number 2 `echo a`, but not line number 5 (because its before line start
3).
=== Bug fixes
* command: change the owner of file when doing #get!
In case the owner of file is not active user and it does not have
read permission, the "#get!" command will fail when copying command
from remote to local.
* command: fix magic copy and get command on templates
=== Enhancements
* command: merge sequences of spaces on command into single space
* command: check for single, double, or back quote on command
Previously, if command contains quote like,
echo "a b"
the script will run it as ["echo", `"a`, `b"`] which is not what we
will expected and may cause some command failed to run.
This changes fix the parsing of command string by detecting possible
quote.
