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

Function NewCmdVariable

pkg/cmd/variable/variable.go:13–31  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

11)
12
13func NewCmdVariable(f *cmdutil.Factory) *cobra.Command {
14 cmd := &cobra.Command{
15 Use: "variable <command>",
16 Short: "Manage GitHub Actions variables",
17 Long: heredoc.Docf(`
18 Variables can be set at the repository, environment or organization level for use in
19 GitHub Actions or Dependabot. Run %[1]sgh help variable set%[1]s to learn how to get started.
20 `, "`"),
21 }
22
23 cmdutil.EnableRepoOverride(cmd, f)
24
25 cmd.AddCommand(cmdGet.NewCmdGet(f, nil))
26 cmd.AddCommand(cmdSet.NewCmdSet(f, nil))
27 cmd.AddCommand(cmdList.NewCmdList(f, nil))
28 cmd.AddCommand(cmdDelete.NewCmdDelete(f, nil))
29
30 return cmd
31}

Callers

nothing calls this directly

Calls 1

EnableRepoOverrideFunction · 0.92

Tested by

no test coverage detected