Add cmd.Run function
This commit is contained in:
parent
16c591d741
commit
05f3e1a125
@ -925,3 +925,8 @@ func Init(opts ...Option) error {
|
|||||||
func NewCmd(opts ...Option) Cmd {
|
func NewCmd(opts ...Option) Cmd {
|
||||||
return newCmd(opts...)
|
return newCmd(opts...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Run the default command
|
||||||
|
func Run() error {
|
||||||
|
return DefaultCmd.Run()
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user