INNER CODE UNIT · Go

main

cilium/tetragon · cmd/tetra/main.go:22

func main() {
	if err := New().Execute(); err != nil {
		os.Exit(1)
	}
}

func New() *cobra.Command {
	rootCmd = &cobra.Command{
		Use:          "tetra",
		Short:        "Tetragon CLI",
		SilenceUsage: true,
		Run: func(cmd *cobra.Command, _ []string) {
			cmd.Help()
		},
		PersistentPreRun: func(_ *cobra.Command, _ []string) {
			if common.Debug {
				logger.SetLogLevel(slog.LevelDebug)
			}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…