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

Function NewCmdSecret

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

EnableRepoOverrideFunction · 0.92

Tested by

no test coverage detected