| Age | Commit message (Collapse) | Author |
|
The "$noparse" option allow copying file without reading and parsing
the input file.
|
|
The "share" project has been moved to SourceHut with new name
"pakakeh.go".
|
|
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.
|
|
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.
|
|
This will allow us to build test binary that contains only "integration"
build constraints.
The test that have "integration" will be run using container.
|
|
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.
|
|
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.
|
|
* 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
|
|
|
|
See https://kilabit.info/journal/2022/gpl for more information.
|
|
The idea for rewrite is to separate between local and remote script, so
we can apply environment variables to local script. We also parse and
validate each statements before being executed to simplify the code.
|