(f *cmdutil.Factory)
| 11 | ) |
| 12 | |
| 13 | func 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 | } |
nothing calls this directly
no test coverage detected