mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-12 23:29:57 -06:00
23 lines
379 B
Go
23 lines
379 B
Go
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)
|
|
}
|