X Tutup
Skip to content

Commit e100b15

Browse files
author
vilmibm
committed
some text tweaks
1 parent 0833bdc commit e100b15

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pkg/cmd/gist/view/view.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
3939
cmd := &cobra.Command{
4040
Use: "view [<id> | <url>]",
4141
Short: "View a gist",
42-
Long: `View specific gist if argument provided.
43-
44-
With no argument, most recent 10 gists will prompt`,
45-
Args: cobra.MaximumNArgs(1),
42+
Long: `View the given gist or select from recent gists.`,
43+
Args: cobra.MaximumNArgs(1),
4644
RunE: func(cmd *cobra.Command, args []string) error {
4745
if len(args) == 1 {
4846
opts.Selector = args[0]
@@ -82,7 +80,7 @@ func viewRun(opts *ViewOptions) error {
8280
}
8381

8482
if gistID == "" {
85-
83+
fmt.Fprintln(opts.IO.Out, "No gists found.")
8684
return nil
8785
}
8886
}

0 commit comments

Comments
 (0)
X Tutup