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

Function NewCmdSubscription

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

Source from the content-addressed store, hash-verified

12)
13
14func 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected