We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0833bdc commit e100b15Copy full SHA for e100b15
pkg/cmd/gist/view/view.go
@@ -39,10 +39,8 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
39
cmd := &cobra.Command{
40
Use: "view [<id> | <url>]",
41
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),
+ Long: `View the given gist or select from recent gists.`,
+ Args: cobra.MaximumNArgs(1),
46
RunE: func(cmd *cobra.Command, args []string) error {
47
if len(args) == 1 {
48
opts.Selector = args[0]
@@ -82,7 +80,7 @@ func viewRun(opts *ViewOptions) error {
82
80
}
83
81
84
if gistID == "" {
85
+ fmt.Fprintln(opts.IO.Out, "No gists found.")
86
return nil
87
88
0 commit comments