(f *cmdutil.Factory)
| 10 | ) |
| 11 | |
| 12 | func NewCmdEvent(f *cmdutil.Factory) *cobra.Command { |
| 13 | cmd := &cobra.Command{ |
| 14 | Use: "event <command>", |
| 15 | Short: "Listen to GitHub events (preview)", |
| 16 | Long: heredoc.Docf(` |
| 17 | Listen to events on GitHub resources as they happen, instead of polling. Changes made before |
| 18 | the listener starts are not reported, so read the resource once it is listening. |
| 19 | |
| 20 | This is a preview, available on %[1]sgithub.com%[1]s to accounts enabled for event subscriptions. |
| 21 | `, "`"), |
| 22 | } |
| 23 | |
| 24 | cmd.AddCommand(cmdListen.NewCmdListen(f, nil)) |
| 25 | cmd.AddCommand(cmdSubscription.NewCmdSubscription(f)) |
| 26 | return cmd |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected