MCPcopy
hub / github.com/opencloud-eu/opencloud / Execute

Function Execute

services/users/pkg/command/root.go:27–36  ·  view source on GitHub ↗

Execute is the entry point for the opencloud-user command.

(cfg *config.Config)

Source from the content-addressed store, hash-verified

25
26// Execute is the entry point for the opencloud-user command.
27func Execute(cfg *config.Config) error {
28 app := clihelper.DefaultApp(&cobra.Command{
29 Use: "user",
30 Short: "Provide users for OpenCloud",
31 })
32 app.AddCommand(GetCommands(cfg)...)
33 app.SetArgs(os.Args[1:])
34
35 return app.ExecuteContext(cfg.Context)
36}

Callers

nothing calls this directly

Calls 2

DefaultAppFunction · 0.92
GetCommandsFunction · 0.70

Tested by

no test coverage detected