INNER CODE UNIT · Go
imgCommands
inspektor-gadget/inspektor-gadget · cmd/kubectl-gadget/main.go:158
imgCommands := []*cobra.Command{
img.NewInspectCmd(grpcRuntime),
}
hiddenColumnTags := []string{"runtime"}
common.AddInstanceCommands(rootCmd, grpcRuntime)
rootCmd.AddCommand(common.NewRunCommand(rootCmd, grpcRuntime, hiddenColumnTags, common.CommandModeRun))
rootCmd.AddCommand(common.NewRunCommand(rootCmd, grpcRuntime, hiddenColumnTags, common.CommandModeAttach))
rootCmd.AddCommand(common.NewConfigCmd(grpcRuntime, rootFlags))
rootCmd.AddCommand(img.NewImageCmd(grpcRuntime, imgCommands))
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}