diff options
| author | Shulhan <ms@kilabit.info> | 2023-03-17 22:24:06 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-03-17 22:24:06 +0700 |
| commit | 42e96adf2ea2bab6f173bd38eed49f30346867dd (patch) | |
| tree | 6d398000ba1b6302f9730db1315724046f30f5c4 | |
| parent | cc59d3e765acd364376f5f7df143d318ca23f8c8 (diff) | |
| download | awwan-42e96adf2ea2bab6f173bd38eed49f30346867dd.tar.xz | |
all: fix and add comments to global constants and methods
This mark the development for the next minor version.
| -rw-r--r-- | awwan.go | 10 | ||||
| -rw-r--r-- | statement.go | 2 |
2 files changed, 9 insertions, 3 deletions
@@ -21,14 +21,18 @@ import ( "github.com/shuLhan/share/lib/ssh/config" ) -const ( - Version = `0.6.2` +// Version current version of this module (library and program). +const Version = `0.7.0-dev` +// List of command available for program awwan. +const ( CommandModeBuild = "build" CommandModeLocal = "local" CommandModePlay = "play" CommandModeServe = "serve" +) +const ( defCacheDir = ".cache" defEnvFileName = "awwan.env" // The default awwan environment file name. defListenAddress = "127.0.0.1:17600" @@ -127,6 +131,7 @@ func (aww *Awwan) Build() (err error) { return nil } +// Local execute the script in the local machine using shell. func (aww *Awwan) Local(req *Request) (err error) { var ( logp = "Local" @@ -194,6 +199,7 @@ func (aww *Awwan) Local(req *Request) (err error) { return nil } +// Play execute the script in the remote machine using SSH. func (aww *Awwan) Play(req *Request) (err error) { var ( logp = "Play" diff --git a/statement.go b/statement.go index 87b3a5b..84071dd 100644 --- a/statement.go +++ b/statement.go @@ -21,7 +21,7 @@ const ( statementKindSudoPut ) -// Statetement contains parsed raw line from the script. +// Statement contains parsed raw line from the script. type Statement struct { cmd string args []string |
