MCPcopy Create free account
hub / github.com/cli/cli / NewCmdEvent

Function NewCmdEvent

pkg/cmd/event/event.go:12–27  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

10)
11
12func 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected