summaryrefslogtreecommitdiff
path: root/script_example_test.go
AgeCommit message (Collapse)Author
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: rewrite the Session and Script using StatementShulhan
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.
2021-08-09all: rewrite the join statements function on ScriptShulhan
Some enhancements and fixes, * Trim the spaces on each statement before checking for continued line * Trim the spaces on continued line * Set the empty lines to nil, to minimize memory usage
2021-08-09all: refactoring the codeShulhan
Previously we have Command, environment, and script types to handle all functionalities. The name for Command is kind a misleading, because it contains method to copy files in local or remote and to execute script in local or remote. This refactoring break down the types into Awwan, Session, and Script. Awwan contains cache of sessions and cache of environment files. Session manage and cache SSH client and list of scripts. One session have one SSH client, but may contains more than one script. Script define the content of ".aww" file, line by line.
2021-03-09all: unexport the environment typeShulhan
This type is not usable if its exported. So, let unexport them to let user focus on Command.
2021-03-07all: never, ever use log.Fatal on libraryShulhan
A good library is the one that return an error when something happened, not immediately stop the program. I made a mistake and I learn from it.
2020-04-15all: refactoring the environmentShulhan
This change remove the command mode "bootstrap" and replace default environment file from "env.ini" to "awwan.env".
2019-10-26awwan: the configuration management for local and cloudShulhan
awwan is command line interface to configurate and manage remote system through SSH connection.