some text tweaks

This commit is contained in:
vilmibm 2021-03-01 16:03:13 -06:00
parent 0833bdc6b4
commit e100b15acb

View file

@ -39,10 +39,8 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
cmd := &cobra.Command{
Use: "view [<id> | <url>]",
Short: "View a gist",
Long: `View specific gist if argument provided.
With no argument, most recent 10 gists will prompt`,
Args: cobra.MaximumNArgs(1),
Long: `View the given gist or select from recent gists.`,
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) == 1 {
opts.Selector = args[0]
@ -82,7 +80,7 @@ func viewRun(opts *ViewOptions) error {
}
if gistID == "" {
fmt.Fprintln(opts.IO.Out, "No gists found.")
return nil
}
}