Skip to content

Commit 7d0a886

Browse files
committed
refactor: remove unnecessary line setting FilePath field to .host
- Remove the line that sets the `FilePath` field to `.host` Signed-off-by: appleboy <[email protected]>
1 parent a83bebe commit 7d0a886

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ func main() {
3838
app.Version = Version
3939
app.Flags = []cli.Flag{
4040
&cli.StringSliceFlag{
41-
Name: "host",
42-
Aliases: []string{"H"},
43-
Usage: "connect to host",
44-
EnvVars: []string{"PLUGIN_HOST", "SSH_HOST", "INPUT_HOST"},
45-
FilePath: ".host",
41+
Name: "host",
42+
Aliases: []string{"H"},
43+
Usage: "connect to host",
44+
EnvVars: []string{"PLUGIN_HOST", "SSH_HOST", "INPUT_HOST"},
4645
},
4746
&cli.IntFlag{
4847
Name: "port",

0 commit comments

Comments
 (0)