MCPcopy
hub / github.com/containers/toolbox / rootRunImpl

Function rootRunImpl

src/cmd/rootDefault.go:34–47  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

32}
33
34func rootRunImpl(cmd *cobra.Command, args []string) error {
35 var builder strings.Builder
36 fmt.Fprintf(&builder, "missing command\n")
37 fmt.Fprintf(&builder, "\n")
38
39 usage := getUsageForCommonCommands()
40 fmt.Fprintf(&builder, "%s", usage)
41
42 fmt.Fprintf(&builder, "\n")
43 fmt.Fprintf(&builder, "Run '%s --help' for usage.", executableBase)
44
45 errMsg := builder.String()
46 return errors.New(errMsg)
47}

Callers 1

rootRunFunction · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…