(ctx context.Context, args []string)
| 104 | } |
| 105 | |
| 106 | func Execute(ctx context.Context, args []string) int { |
| 107 | defer debug.Recover() |
| 108 | rootCmd := RootCmd() |
| 109 | exe := midcobra.New(rootCmd) |
| 110 | exe.AddMiddleware(traceMiddleware) |
| 111 | exe.AddMiddleware(midcobra.Telemetry()) |
| 112 | exe.AddMiddleware(debugMiddleware) |
| 113 | return exe.Execute(ctx, wrapArgsForRun(rootCmd, args)) |
| 114 | } |
| 115 | |
| 116 | func Main() { |
| 117 | timer := debug.Timer(strings.Join(os.Args, " ")) |
no test coverage detected