feat: show undploy overview

This commit is contained in:
2021-10-21 15:10:43 +02:00
parent 7a5ad65178
commit c5f44cf340
2 changed files with 19 additions and 3 deletions

View File

@ -123,7 +123,7 @@ recipes.
logrus.Fatal(err)
}
if err := DeployOverview(app, version); err != nil {
if err := DeployOverview(app, version, "continue with deployment?"); err != nil {
logrus.Fatal(err)
}
@ -148,7 +148,7 @@ recipes.
}
// DeployOverview shows a deployment overview
func DeployOverview(app config.App, version string) error {
func DeployOverview(app config.App, version, message string) error {
tableCol := []string{"server", "compose", "domain", "stack", "version"}
table := abraFormatter.CreateTable(tableCol)
@ -167,7 +167,7 @@ func DeployOverview(app config.App, version string) error {
response := false
prompt := &survey.Confirm{
Message: "continue with deployment?",
Message: message,
}
if err := survey.AskOne(prompt, &response); err != nil {