Skip to content

Commit

Permalink
refactor: remove unnecessary line setting FilePath field to .host
Browse files Browse the repository at this point in the history
- Remove the line that sets the `FilePath` field to `.host`

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Jan 27, 2024
1 parent a83bebe commit 7d0a886
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ func main() {
app.Version = Version
app.Flags = []cli.Flag{
&cli.StringSliceFlag{
Name: "host",
Aliases: []string{"H"},
Usage: "connect to host",
EnvVars: []string{"PLUGIN_HOST", "SSH_HOST", "INPUT_HOST"},
FilePath: ".host",
Name: "host",
Aliases: []string{"H"},
Usage: "connect to host",
EnvVars: []string{"PLUGIN_HOST", "SSH_HOST", "INPUT_HOST"},
},
&cli.IntFlag{
Name: "port",
Expand Down

0 comments on commit 7d0a886

Please sign in to comment.