From 32c6babdb837cb4f4b07903ef9ec52a21b677001 Mon Sep 17 00:00:00 2001 From: mpolcik Date: Tue, 6 Mar 2018 11:01:31 +0100 Subject: [PATCH] update readme for create/delete stack --- README.md | 11 ++++------- cliparser/cliparser.go | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6f0e048..3c51495 100644 --- a/README.md +++ b/README.md @@ -67,15 +67,12 @@ Then type path and name of new configuration file. To create new stack you have to type: -``~ $ perun --mode=create-stack - --template= - --stack= +``~ $ perun create-stack +``~ $ perun delete-stack `` ### Configuration file @@ -123,7 +120,7 @@ mfa_serial = ### Working with stacks -Perun allows to create and destroy stacks. +Perun allows to create and destroy stacks. To create stack it uses your template. It can be JSON or YAML format. @@ -139,7 +136,7 @@ Example JSON template which describe S3 Bucket: } ``` -If you want to destroy stack just type its name. +If you want to destroy stack just type its name. Before you create stack you should validate it with perun :wink:. ## License diff --git a/cliparser/cliparser.go b/cliparser/cliparser.go index 316f674..67d4499 100644 --- a/cliparser/cliparser.go +++ b/cliparser/cliparser.go @@ -77,8 +77,8 @@ func ParseCliArguments(args []string) (cliArguments CliArguments, err error) { configure = app.Command(ConfigureMode, "Create your own configuration mode") - createStack = app.Command(CreateStackMode, "Creates a stack on aws") - createStackName = createStack.Arg("stack", "An AWS stack name.").Required().String() + createStack = app.Command(CreateStackMode, "Creates a stack on aws") + createStackName = createStack.Arg("stack", "An AWS stack name.").Required().String() createStackTemplate = createStack.Arg("template", "A path to the template file.").Required().String() deleteStack = app.Command(DestroyStackMode, "Deletes a stack on aws")