"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/cmd/secret/remove/remove.go" between
gh-cli-1.11.0.tar.gz and gh-cli-1.12.0.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

remove.go  (gh-cli-1.11.0):remove.go  (gh-cli-1.12.0)
skipping to change at line 35 skipping to change at line 35
func NewCmdRemove(f *cmdutil.Factory, runF func(*RemoveOptions) error) *cobra.Co mmand { func NewCmdRemove(f *cmdutil.Factory, runF func(*RemoveOptions) error) *cobra.Co mmand {
opts := &RemoveOptions{ opts := &RemoveOptions{
IO: f.IOStreams, IO: f.IOStreams,
Config: f.Config, Config: f.Config,
HttpClient: f.HttpClient, HttpClient: f.HttpClient,
} }
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "remove <secret-name>", Use: "remove <secret-name>",
Short: "Remove an organization, environment, or repository secret Short: "Remove secrets",
", Long: "Remove a secret for a repository, environment, or organiz
ation",
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
// support `-R, --repo` override // support `-R, --repo` override
opts.BaseRepo = f.BaseRepo opts.BaseRepo = f.BaseRepo
if err := cmdutil.MutuallyExclusive("specify only one of `--org` or `--env`", opts.OrgName != "", opts.EnvName != ""); err != nil { if err := cmdutil.MutuallyExclusive("specify only one of `--org` or `--env`", opts.OrgName != "", opts.EnvName != ""); err != nil {
return err return err
} }
opts.SecretName = args[0] opts.SecretName = args[0]
 End of changes. 1 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)