abra/cli/recipe/recipe.go

52 lines
1.1 KiB
Go
Raw Normal View History

package recipe
2021-07-21 08:58:13 +00:00
import (
"github.com/urfave/cli/v2"
)
var Major bool
var MajorFlag = &cli.BoolFlag{
Name: "major",
Value: false,
Aliases: []string{"ma", "x"},
Destination: &Major,
}
var Minor bool
var MinorFlag = &cli.BoolFlag{
Name: "minor",
Value: false,
Aliases: []string{"mi", "y"},
Destination: &Minor,
}
var Patch bool
var PatchFlag = &cli.BoolFlag{
Name: "patch",
Value: false,
Aliases: []string{"p", "z"},
Destination: &Patch,
}
2021-09-05 20:33:07 +00:00
// RecipeCommand defines all recipe related sub-commands.
2021-07-21 08:58:13 +00:00
var RecipeCommand = &cli.Command{
Name: "recipe",
Usage: "Manage recipes",
ArgsUsage: "<recipe>",
Aliases: []string{"r"},
2021-07-28 11:56:18 +00:00
Description: `
A recipe is a blueprint for an app. It is a bunch of configuration files which
describe how to deploy and maintain an app. Recipes are maintained by the Co-op
Cloud community and you can use Abra to read them and create apps for you.
2021-07-28 11:56:18 +00:00
`,
2021-07-21 08:58:13 +00:00
Subcommands: []*cli.Command{
recipeListCommand,
2021-07-24 21:18:23 +00:00
recipeVersionCommand,
2021-09-22 14:03:56 +00:00
recipeReleaseCommand,
recipeNewCommand,
recipeUpgradeCommand,
recipeSyncCommand,
2021-08-03 17:25:32 +00:00
recipeLintCommand,
2021-07-21 08:58:13 +00:00
},
}