Add option to use file for host info (#113)

This commit is contained in:
techknowlogick
2020-04-29 02:22:30 -04:00
committed by GitHub
parent c75daae1f3
commit 1996e5d780
+4 -3
View File
@@ -32,9 +32,10 @@ func main() {
app.Version = Version
app.Flags = []cli.Flag{
&cli.StringSliceFlag{
Name: "host, H",
Usage: "Server host",
EnvVars: []string{"PLUGIN_HOST", "SCP_HOST", "SSH_HOST", "HOST", "INPUT_HOST"},
Name: "host, H",
Usage: "Server host",
EnvVars: []string{"PLUGIN_HOST", "SCP_HOST", "SSH_HOST", "HOST", "INPUT_HOST"},
FilePath: ".host",
},
&cli.StringFlag{
Name: "port, P",