From e100b15acb730b5843f45ec6a3be91db34e6ca02 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 1 Mar 2021 16:03:13 -0600 Subject: [PATCH] some text tweaks --- pkg/cmd/gist/view/view.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/cmd/gist/view/view.go b/pkg/cmd/gist/view/view.go index 4f41a84a9..c221a0267 100644 --- a/pkg/cmd/gist/view/view.go +++ b/pkg/cmd/gist/view/view.go @@ -39,10 +39,8 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman cmd := &cobra.Command{ Use: "view [ | ]", 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 } }