INNER CODE UNIT · Go

func

int128/kubelogin · pkg/cmd/cmd.go:41

func (cmd *Cmd) Run(ctx context.Context, args []string, version string) int {
	rootCmd := cmd.Root.New()
	rootCmd.Version = version
	rootCmd.SilenceUsage = true
	rootCmd.SilenceErrors = true

	getTokenCmd := cmd.GetToken.New()
	rootCmd.AddCommand(getTokenCmd)

	setupCmd := cmd.Setup.New()
	rootCmd.AddCommand(setupCmd)

	cleanCmd := cmd.Clean.New()
	rootCmd.AddCommand(cleanCmd)

	versionCmd := &cobra.Command{
		Use:   "version",
		Short: "Print the version information",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…