MCPcopy
hub / github.com/jetify-com/typeid / Execute

Function Execute

cli/root.go:28–37  ·  view source on GitHub ↗
(ctx context.Context, args []string)

Source from the content-addressed store, hash-verified

26}
27
28func Execute(ctx context.Context, args []string) int {
29 cmd := RootCmd()
30 cmd.SetArgs(args)
31 err := cmd.ExecuteContext(ctx)
32 if err != nil {
33 fmt.Printf("[Error] %v\n", err)
34 return 1
35 }
36 return 0
37}
38
39func Main() {
40 code := Execute(context.Background(), os.Args[1:])

Callers 1

MainFunction · 0.85

Calls 1

RootCmdFunction · 0.85

Tested by

no test coverage detected