some text tweaks
This commit is contained in:
parent
0833bdc6b4
commit
e100b15acb
1 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue