<feed xmlns='http://www.w3.org/2005/Atom'>
<title>awwan, branch v0.2.1</title>
<subtitle>Configuration management software, scriptable shell with SSH support.</subtitle>
<id>http://git.kilabit.info/awwan/atom?h=v0.2.1</id>
<link rel='self' href='http://git.kilabit.info/awwan/atom?h=v0.2.1'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/'/>
<updated>2021-01-18T12:39:43Z</updated>
<entry>
<title>go.mod: update with latest share module</title>
<updated>2021-01-18T12:39:43Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-01-18T12:39:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=c4a4648f7176c90107a826d63ff27e27cbca98c4'/>
<id>urn:sha1:c4a4648f7176c90107a826d63ff27e27cbca98c4</id>
<content type='text'>
This fix the "#put" command on script.
</content>
</entry>
<entry>
<title>Release awwan 0.2.0 (2020.07.05)</title>
<updated>2020-07-05T13:32:32Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-07-05T13:32:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=69377243701b705787e7fa00f75fbf1c0a63fbdb'/>
<id>urn:sha1:69377243701b705787e7fa00f75fbf1c0a63fbdb</id>
<content type='text'>
===  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.
</content>
</entry>
<entry>
<title>command: change the owner of file when doing #get!</title>
<updated>2020-06-26T00:23:43Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-06-26T00:23:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=bc18c1c86c6fd9479ed26c6827d9a416e6822fe1'/>
<id>urn:sha1:bc18c1c86c6fd9479ed26c6827d9a416e6822fe1</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>environment: set the SSH key, user, host, and port</title>
<updated>2020-06-26T00:21:58Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-06-26T00:21:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=5dfcef1eaba4b8563a7eb2865d28bf45be282f23'/>
<id>urn:sha1:5dfcef1eaba4b8563a7eb2865d28bf45be282f23</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>command: log the put and get commands on local and remote</title>
<updated>2020-06-15T12:18:10Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-06-15T12:17:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=f370c2a598d3b4482e2d391458fc6878fada49af'/>
<id>urn:sha1:f370c2a598d3b4482e2d391458fc6878fada49af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>go.mod: fix magic copy and get commands on template</title>
<updated>2020-06-15T12:17:17Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-06-15T12:17:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=fbf3d88264b7177da4eb1596480138d88eff8c98'/>
<id>urn:sha1:fbf3d88264b7177da4eb1596480138d88eff8c98</id>
<content type='text'>
The bug is in lib/io.Copy where the destination file does not get
truncated when copying file.
</content>
</entry>
<entry>
<title>all: add magic command "#require:"</title>
<updated>2020-06-03T19:50:57Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-06-03T19:50:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=8b9e8bdc0fa7c9c4bb4024567d562af558385e1e'/>
<id>urn:sha1:8b9e8bdc0fa7c9c4bb4024567d562af558385e1e</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>command: merge sequences of spaces on command into single space</title>
<updated>2020-06-03T18:03:20Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-06-03T18:03:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=9bf6863448581351232dcdc5aa06a50907542f60'/>
<id>urn:sha1:9bf6863448581351232dcdc5aa06a50907542f60</id>
<content type='text'>
</content>
</entry>
<entry>
<title>command: check for single, double, or back quote on command</title>
<updated>2020-06-03T17:40:42Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-06-03T17:40:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=b415c48406b5cfdf9014d98d9a3e857dc0318eb5'/>
<id>urn:sha1:b415c48406b5cfdf9014d98d9a3e857dc0318eb5</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>README: update an example section</title>
<updated>2020-05-30T17:02:08Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2020-05-30T17:02:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=04cc661ad0e605e22b8171ceb1e962d396cb7b07'/>
<id>urn:sha1:04cc661ad0e605e22b8171ceb1e962d396cb7b07</id>
<content type='text'>
Show where the file location using $WORKDIR and shell script syntax
to generate here-document.
</content>
</entry>
</feed>
