mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
fix runnability of commands
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ func (c *Command) Name() string {
|
||||
}
|
||||
|
||||
func (c *Command) Runnable() bool {
|
||||
return c.Run != nil
|
||||
return c.Run != nil && c.Disabled != true
|
||||
}
|
||||
|
||||
func (c *Command) List() bool {
|
||||
|
||||
Reference in New Issue
Block a user