add ls alias to gh repo list (#5480)
This commit is contained in:
parent
c445529719
commit
25a55948cf
1 changed files with 4 additions and 3 deletions
|
|
@ -49,9 +49,10 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
|
|||
)
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Use: "list [<owner>]",
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
Short: "List repositories owned by user or organization",
|
||||
Use: "list [<owner>]",
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
Short: "List repositories owned by user or organization",
|
||||
Aliases: []string{"ls"},
|
||||
RunE: func(c *cobra.Command, args []string) error {
|
||||
if opts.Limit < 1 {
|
||||
return cmdutil.FlagErrorf("invalid limit: %v", opts.Limit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue