summaryrefslogtreecommitdiff
path: root/awwan.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-06-09 16:06:19 +0700
committerShulhan <ms@kilabit.info>2021-06-09 16:06:19 +0700
commitf3a2265feeaffc31fc9d7e1d1b7f12107140a33e (patch)
tree4a8cb8772896f045fa3ec7188ea2e42378d22b61 /awwan.go
parent5b7e73734ad45a265381bfceee6bbcf5db76ca40 (diff)
downloadawwan-0.3.0.tar.xz
Release awwan 0.3.0 (2021.06.09)v0.3.0
* go.mod: set the minimum Go to 1.16 and update to share module v0.25.1 === Enhancements * cmd/awwan: print the awwan version on command usage output * all: check and return an error if start index is out of range * all: log error when executing script (local or play) * all: do not load SSH config if command mode is "local" If the mode is local there is no need to parse and load the SSH config, since the command to be executed will run on local machine anyway. * all: set base dir based on the first .ssh directory that we found Previously, the base directory is set on current working directory. This limit the way to execute awwan only from the directory that contains the .ssh directory. This changes set the environment BaseDir based on the first .ssh directory that we found from script path up to the "/". So, user can execute awwan script from any sub-directories.
Diffstat (limited to 'awwan.go')
-rw-r--r--awwan.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/awwan.go b/awwan.go
index af16608..841a880 100644
--- a/awwan.go
+++ b/awwan.go
@@ -5,6 +5,8 @@
package awwan
const (
+ Version = "0.3.0"
+
modeLocal = "local"
modePlay = "play"