MCPcopy Index your code
hub / github.com/jetify-com/devbox / Execute

Function Execute

internal/boxcli/root.go:106–114  ·  view source on GitHub ↗
(ctx context.Context, args []string)

Source from the content-addressed store, hash-verified

104}
105
106func 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
116func Main() {
117 timer := debug.Timer(strings.Join(os.Args, " "))

Callers 2

MainFunction · 0.92
MainFunction · 0.85

Calls 7

RecoverFunction · 0.92
NewFunction · 0.92
TelemetryFunction · 0.92
RootCmdFunction · 0.85
wrapArgsForRunFunction · 0.85
AddMiddlewareMethod · 0.65
ExecuteMethod · 0.65

Tested by

no test coverage detected