Execute is the entry point for the opencloud auth-basic command.
(cfg *config.Config)
| 24 | |
| 25 | // Execute is the entry point for the opencloud auth-basic command. |
| 26 | func Execute(cfg *config.Config) error { |
| 27 | app := clihelper.DefaultApp(&cobra.Command{ |
| 28 | Use: "auth-basic", |
| 29 | Short: "Provide basic authentication for OpenCloud", |
| 30 | }) |
| 31 | app.AddCommand(GetCommands(cfg)...) |
| 32 | app.SetArgs(os.Args[1:]) |
| 33 | |
| 34 | return app.ExecuteContext(cfg.Context) |
| 35 | } |
nothing calls this directly
no test coverage detected