2021-08-02 01:10:41 +00:00
|
|
|
package recipe
|
2021-07-21 08:58:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
2021-10-01 17:47:32 +00:00
|
|
|
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{
|
2021-09-04 23:21:16 +00:00
|
|
|
Name: "recipe",
|
|
|
|
Usage: "Manage recipes",
|
|
|
|
ArgsUsage: "<recipe>",
|
|
|
|
Aliases: []string{"r"},
|
2021-07-28 11:56:18 +00:00
|
|
|
Description: `
|
2021-09-04 23:21:16 +00:00
|
|
|
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,
|
2021-09-07 05:31:11 +00:00
|
|
|
recipeNewCommand,
|
2021-08-06 10:34:59 +00:00
|
|
|
recipeUpgradeCommand,
|
|
|
|
recipeSyncCommand,
|
2021-08-03 17:25:32 +00:00
|
|
|
recipeLintCommand,
|
2021-07-21 08:58:13 +00:00
|
|
|
},
|
|
|
|
}
|