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