Add msg in gist delete

This commit is contained in:
Gowtham Munukutla 2021-02-24 15:53:07 +05:30
parent 56ead91702
commit 61eb7eeeab

View file

@ -29,7 +29,7 @@ func NewCmdDelete(f *cmdutil.Factory, runF func(*DeleteOptions) error) *cobra.Co
cmd := &cobra.Command{
Use: "delete {<id> | <url>}",
Short: "Delete a gist",
Args: cobra.ExactArgs(1),
Args: cmdutil.ExactArgs(1, "cannot delete: gist argument required"),
RunE: func(c *cobra.Command, args []string) error {
opts.Selector = args[0]
if runF != nil {