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