ensure commands for all services
This commit is contained in:
@@ -2,21 +2,8 @@ package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
func handleOriginalAction(c *cli.Context, cmd *cli.Command) error {
|
||||
|
||||
if cmd.Before != nil {
|
||||
if err := cmd.Before(c); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return cli.HandleAction(cmd.Action, c)
|
||||
}
|
||||
|
||||
func subcommandDescription(serviceName string) string {
|
||||
return fmt.Sprintf("%s extension commands", serviceName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user