From 7d0a88610981ab169372e3864b673cb9b6385b0f Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 27 Jan 2024 11:22:04 +0800 Subject: [PATCH] refactor: remove unnecessary line setting FilePath field to .host - Remove the line that sets the `FilePath` field to `.host` Signed-off-by: appleboy --- main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 5b9dda0..7bd76ab 100644 --- a/main.go +++ b/main.go @@ -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",