aboutsummaryrefslogtreecommitdiff
path: root/request.go
AgeCommit message (Collapse)Author
2023-11-16all: refactoring, rename Request to ExecRequestShulhan
2023-10-30all: log all execution into fileShulhan
For each script execution, a file suffixed with ".log" will be created in the same directory with the same name as script file. For example, if the script is path is "a/b/c.aww" then the log file would named "a/b/c.aww.log". This is to provides history and audit in the future.
2023-10-26all: use "mlog.MultiLogger" to log Request output and errorShulhan
By using "mlog.MultiLogger" every output or error can be written to stdout/stderr and additional log writer that can collect both of them, buffered and returned to the caller. This changes simplify the HttpResponse to use only single output that combine both stdout and stderr.
2023-10-12all: add integration tests for magic command "#get!"Shulhan
2023-09-22all: update the comment on Request typeShulhan
This move the comment related to non-exported fields inside the struct instead of top.
2023-03-26all: add configuration for golangci-lintShulhan
With configuration we can enable or disable specific linters and customize it without touching the Makefile. While at it, enable linter presets for bugs, comment, metalinter, module, performance, unused and fix the reported issues.
2023-03-20all: changes the line number arguments for "local" and "play" commandShulhan
Previously, the "local" and "play" command only accept two kind of arguments: one argument for executing single line or two arguments for executing line range. There are no options to executing multiple single line, multiple line range, or combination of them. This changes make the both commands accept list of lines or line range where each separated by comma. For example, to execute multiple, different single lines awwan local 4,8,12 To execute multiple line range, awwan local 4-8,12-16 Or to execute multiple lines and line range, awwan local 4,8,10-12
2022-07-31all: realign some structs to minimize memory usageShulhan
* 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
2022-06-20all: reformat all go files using the next gofmtShulhan
2022-03-14all: change the awwan software license to GPL 3.0 or laterShulhan
See https://kilabit.info/journal/2022/gpl for more information.
2021-08-22all: implement serve commandShulhan
The serve comman will run a HTTP server that provide web-user interface to edit and execute script. Currently, the web-user interface provide the following features, * Browsing the workspace * Running the script on local or remote
2021-08-22all: refactoring to support custom standard output and errorShulhan
Previously, all of the local and remote command execution will be redirected to operating system standard output and error. This commit refactoring the code to allow Local or Play command to use custom standard output and error per request.