(f *cmdutil.Factory)
| 10 | ) |
| 11 | |
| 12 | func NewCmdSecret(f *cmdutil.Factory) *cobra.Command { |
| 13 | cmd := &cobra.Command{ |
| 14 | Use: "secret <command>", |
| 15 | Short: "Manage GitHub secrets", |
| 16 | Long: heredoc.Docf(` |
| 17 | Secrets can be set at the repository, or organization level for use in |
| 18 | GitHub Actions, Agents, or Dependabot. User, organization, and repository secrets can be set for |
| 19 | use in GitHub Codespaces. Environment secrets can be set for use in |
| 20 | GitHub Actions. Run %[1]sgh help secret set%[1]s to learn how to get started. |
| 21 | `, "`"), |
| 22 | } |
| 23 | |
| 24 | cmdutil.EnableRepoOverride(cmd, f) |
| 25 | |
| 26 | cmd.AddCommand(cmdList.NewCmdList(f, nil)) |
| 27 | cmd.AddCommand(cmdSet.NewCmdSet(f, nil)) |
| 28 | cmd.AddCommand(cmdDelete.NewCmdDelete(f, nil)) |
| 29 | |
| 30 | return cmd |
| 31 | } |
nothing calls this directly
no test coverage detected