<feed xmlns='http://www.w3.org/2005/Atom'>
<title>awwan/statement_test.go, branch dev</title>
<subtitle>Configuration management software, scriptable shell with SSH support.</subtitle>
<id>http://git.kilabit.info/awwan/atom?h=dev</id>
<link rel='self' href='http://git.kilabit.info/awwan/atom?h=dev'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/'/>
<updated>2025-10-02T17:15:29Z</updated>
<entry>
<title>all: add option "$noparse" for magic "#put" command</title>
<updated>2025-10-02T17:15:29Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-10-02T17:15:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=1003a18b85cffac4b9a92ee787fd8a9bdfca072d'/>
<id>urn:sha1:1003a18b85cffac4b9a92ee787fd8a9bdfca072d</id>
<content type='text'>
The "$noparse" option allow copying file without reading and parsing
the input file.

</content>
</entry>
<entry>
<title>all: replace module "share" with "pakakeh.go"</title>
<updated>2024-03-22T13:12:34Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-03-22T13:11:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee'/>
<id>urn:sha1:62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee</id>
<content type='text'>
The "share" project has been moved to SourceHut with new name
"pakakeh.go".
</content>
</entry>
<entry>
<title>all: add magic command "#local"</title>
<updated>2023-10-21T18:32:42Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-10-21T18:06:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=fc7cd444e7d637c291a3f9ba9987ba0335af4809'/>
<id>urn:sha1:fc7cd444e7d637c291a3f9ba9987ba0335af4809</id>
<content type='text'>
The magic command "#local" define the command to be executed using
shell in local environment.
Its have effect and can only be used in script that executed using
"play".
In script that is executed using "local" it does nothing.
</content>
</entry>
<entry>
<title>all: add parser for magic command "#get" or "#put" with owner and mode</title>
<updated>2023-10-20T16:45:00Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-10-20T16:14:03Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=cda5c7c31a84b01e2231bed579d7f4bb6212a272'/>
<id>urn:sha1:cda5c7c31a84b01e2231bed579d7f4bb6212a272</id>
<content type='text'>
The owner and mode is defined after the magic command with the following
syntax,

  [ USER [ ":" GROUP ]] ["+" MODE]

The USER and/or GROUP is optional, its accept the value as in "chown".
The MODE also optional, its value must be an octal.
</content>
</entry>
<entry>
<title>all: tag all unit test files with "!integration"</title>
<updated>2023-10-11T18:40:22Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-10-11T17:19:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=6b756d144c5cdb0a0c9b5f8a70b3c936a75f28c9'/>
<id>urn:sha1:6b756d144c5cdb0a0c9b5f8a70b3c936a75f28c9</id>
<content type='text'>
This will allow us to build test binary that contains only "integration"
build constraints.
The test that have "integration" will be run using container.
</content>
</entry>
<entry>
<title>all: simplify parsing statement for magic command "#put"</title>
<updated>2023-10-07T09:03:09Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-10-07T09:03:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=27a0a85d657d139b73e61d48a38628a6e3b682ed'/>
<id>urn:sha1:27a0a85d657d139b73e61d48a38628a6e3b682ed</id>
<content type='text'>
This changes minimize code duplication when parsing magic command
between "#put:" and "#put!" using single function parseStatementGetPut.

In the returned Statement, we changes where to store the source argument
into args[0] instead of in cmd for better readability and minimize
confusion in Copy/SudoCopy.
</content>
</entry>
<entry>
<title>all: simplify parsing statement for magic command get</title>
<updated>2023-10-05T18:33:12Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-10-05T18:33:12Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=b22f2104dd822a890b8f8b8de5489215493c0812'/>
<id>urn:sha1:b22f2104dd822a890b8f8b8de5489215493c0812</id>
<content type='text'>
This changes minimize code duplication when parsing magic command
between "#get:" and "#get!" using single function parseStatementGetPut.

In the returned Statement, we changes where to store the source argument
into args[0] instead of in cmd for better readability and minimize
confusion in Copy/SudoCopy.

While at it, we add unit test for "#get:".
Unit test for "#get!" is not possible right now, because it will prompt
for password.
</content>
</entry>
<entry>
<title>all: realign some structs to minimize memory usage</title>
<updated>2022-07-31T06:13:15Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-07-31T06:13:15Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=2b41da1528469f97741425ddfe0ddf357ba7e783'/>
<id>urn:sha1:2b41da1528469f97741425ddfe0ddf357ba7e783</id>
<content type='text'>
* Request: from 128 to 96 bytes (-32 bytes)
* Session: from 176 to 160 bytes (-16 bytes)
* Statement: from 56 to 48 bytes (-8 bytes)
* session_test.go:24:13: struct with 48 pointer bytes could be 40
* statement_test.go:13:13: struct with 32 pointer bytes could be 16
</content>
</entry>
<entry>
<title>all: reformat all go files using the next gofmt</title>
<updated>2022-06-20T16:21:48Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-06-20T16:21:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=3a98bd42405185ac9150426e7fe5d97a3d7dc93b'/>
<id>urn:sha1:3a98bd42405185ac9150426e7fe5d97a3d7dc93b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: change the awwan software license to GPL 3.0 or later</title>
<updated>2022-03-13T17:18:56Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-03-13T17:18:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/awwan/commit/?id=6b520faae6ae425b1bb76c516bdc68b06dd5096f'/>
<id>urn:sha1:6b520faae6ae425b1bb76c516bdc68b06dd5096f</id>
<content type='text'>
See https://kilabit.info/journal/2022/gpl for more information.
</content>
</entry>
</feed>
