diff --git a/zssh/zscp/main.go b/zssh/zscp/main.go index 47bb363..17f10f0 100644 --- a/zssh/zscp/main.go +++ b/zssh/zscp/main.go @@ -211,10 +211,6 @@ func init() { rootCmd.Flags().StringVarP(&serviceName, "service", "s", ExpectedServiceAndExeName, fmt.Sprintf("service name. default: %s", ExpectedServiceAndExeName)) } -func Execute() error { - return rootCmd.Execute() -} - func getConfig(cfgFile string) (zitiCfg *config.Config) { zitiCfg, err := config.NewFromFile(cfgFile) if err != nil { @@ -237,5 +233,5 @@ func after(value string, a string) string { } func main() { - Execute() + _ = rootCmd.Execute() } diff --git a/zssh/zssh/main.go b/zssh/zssh/main.go index bd73533..9fa99d8 100644 --- a/zssh/zssh/main.go +++ b/zssh/zssh/main.go @@ -106,10 +106,6 @@ func init() { rootCmd.Flags().BoolVarP(&debug, "debug", "d", false, "pass to enable additional debug information") } -func Execute() error { - return rootCmd.Execute() -} - func getConfig(cfgFile string) (zitiCfg *config.Config) { zitiCfg, err := config.NewFromFile(cfgFile) if err != nil { @@ -119,5 +115,5 @@ func getConfig(cfgFile string) (zitiCfg *config.Config) { } func main() { - Execute() + _ = rootCmd.Execute() }