- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getCommand (0.16 sec)
-
cni/cmd/install-cni/main.go
go func(sigChan chan os.Signal, cancel context.CancelFunc) { sig := <-sigChan log.Infof("Exit signal received: %s", sig) cancel() }(sigChan, cancel) rootCmd := cmd.GetCommand() if err := rootCmd.ExecuteContext(ctx); err != nil { os.Exit(1) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue May 23 17:08:31 GMT 2023 - 1.2K bytes - Viewed (0) -
cni/pkg/cmd/root.go
if err != nil { err = fmt.Errorf("%s: %w", cleanErr.Error(), err) } else { err = cleanErr } } return }, } // GetCommand returns the main cobra.Command object for this application func GetCommand() *cobra.Command { return rootCmd } func init() { viper.AutomaticEnv() viper.AllowEmptyEnv(true) viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.5K bytes - Viewed (0)