make cmd.Run use varargs

This commit is contained in:
Naveen Gogineni
2022-10-10 18:32:56 -04:00
parent adcce134f3
commit 59095aa762
8 changed files with 33 additions and 33 deletions

View File

@@ -566,7 +566,7 @@ func (c *Command) HasName(name string) bool
func (c *Command) Names() []string
Names returns the names including short names and aliases.
func (c *Command) Run(cCtx *Context, arguments []string) (err error)
func (c *Command) Run(cCtx *Context, arguments ...string) (err error)
func (c *Command) VisibleCategories() []CommandCategory
VisibleCategories returns a slice of categories and commands that are