From 2cb0fb8d667754f486eeb29d73be853aec6c9f82 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 7 Sep 2021 07:31:11 +0200 Subject: [PATCH] refactor: match app/recipe new instead of create --- cli/recipe/{create.go => new.go} | 6 +++--- cli/recipe/recipe.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename cli/recipe/{create.go => new.go} (95%) diff --git a/cli/recipe/create.go b/cli/recipe/new.go similarity index 95% rename from cli/recipe/create.go rename to cli/recipe/new.go index 2e3552ba7..ea02e6e27 100644 --- a/cli/recipe/create.go +++ b/cli/recipe/new.go @@ -13,10 +13,10 @@ import ( "github.com/urfave/cli/v2" ) -var recipeCreateCommand = &cli.Command{ - Name: "create", +var recipeNewCommand = &cli.Command{ + Name: "new", Usage: "Create a new recipe", - Aliases: []string{"c"}, + Aliases: []string{"n"}, ArgsUsage: "", Action: func(c *cli.Context) error { recipe := internal.ValidateRecipe(c) diff --git a/cli/recipe/recipe.go b/cli/recipe/recipe.go index f0fedd8b6..d349c2d26 100644 --- a/cli/recipe/recipe.go +++ b/cli/recipe/recipe.go @@ -18,7 +18,7 @@ Cloud community and you can use Abra to read them and create apps for you. Subcommands: []*cli.Command{ recipeListCommand, recipeVersionCommand, - recipeCreateCommand, + recipeNewCommand, recipeUpgradeCommand, recipeSyncCommand, recipeLintCommand,