forked from toolshed/abra
refactor: break up cli pkg into nice small chunks
This commit is contained in:
28
cli/cli.go
28
cli/cli.go
@ -4,6 +4,10 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"coopcloud.tech/abra/cli/app"
|
||||
"coopcloud.tech/abra/cli/internal"
|
||||
"coopcloud.tech/abra/cli/recipe"
|
||||
"coopcloud.tech/abra/cli/server"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
@ -22,21 +26,21 @@ func RunApp(version, commit string) {
|
||||
`,
|
||||
Version: fmt.Sprintf("%s-%s", version, commit[:7]),
|
||||
Commands: []*cli.Command{
|
||||
AppCommand,
|
||||
ServerCommand,
|
||||
RecipeCommand,
|
||||
app.AppCommand,
|
||||
server.ServerCommand,
|
||||
recipe.RecipeCommand,
|
||||
VersionCommand,
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
EnvFlag,
|
||||
StackFlag,
|
||||
SkipCheckFlag,
|
||||
SkipUpdateFlag,
|
||||
VerboseFlag,
|
||||
BranchFlag,
|
||||
NoPromptFlag,
|
||||
DebugFlag,
|
||||
ContextFlag,
|
||||
internal.EnvFlag,
|
||||
internal.StackFlag,
|
||||
internal.SkipCheckFlag,
|
||||
internal.SkipUpdateFlag,
|
||||
internal.VerboseFlag,
|
||||
internal.BranchFlag,
|
||||
internal.NoPromptFlag,
|
||||
internal.DebugFlag,
|
||||
internal.ContextFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user