(f *cmdutil.Factory)
| 12 | ) |
| 13 | |
| 14 | func NewCmdSubscription(f *cmdutil.Factory) *cobra.Command { |
| 15 | cmd := &cobra.Command{ |
| 16 | Use: "subscription <command>", |
| 17 | Short: "Manage event subscriptions (preview)", |
| 18 | Long: heredoc.Docf(` |
| 19 | Manage the event subscriptions of your account. |
| 20 | |
| 21 | A subscription selects the event types to deliver for one resource, and %[1]sgh event listen%[1]s |
| 22 | receives its events. Subscriptions expire after 24 hours, and each account can have a limited |
| 23 | number of them at a time. |
| 24 | `, "`"), |
| 25 | } |
| 26 | |
| 27 | cmd.AddCommand(cmdCreate.NewCmdCreate(f, nil)) |
| 28 | cmd.AddCommand(cmdList.NewCmdList(f, nil)) |
| 29 | cmd.AddCommand(cmdView.NewCmdView(f, nil)) |
| 30 | cmd.AddCommand(cmdDelete.NewCmdDelete(f, nil)) |
| 31 | return cmd |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected