feat: support no-input mode for deploy ops

This commit is contained in:
2021-10-21 20:48:45 +02:00
parent 6a75ffc051
commit a491332c1c
3 changed files with 20 additions and 0 deletions

View File

@ -149,6 +149,10 @@ recipes.
// DeployOverview shows a deployment overview
func DeployOverview(app config.App, version, message string) error {
if internal.NoInput {
return nil
}
tableCol := []string{"server", "compose", "domain", "stack", "version"}
table := abraFormatter.CreateTable(tableCol)
@ -183,6 +187,10 @@ func DeployOverview(app config.App, version, message string) error {
// NewVersionOverview shows an upgrade or downgrade overview
func NewVersionOverview(app config.App, currentVersion, newVersion string) error {
if internal.NoInput {
return nil
}
tableCol := []string{"server", "compose", "domain", "stack", "current version", "to be deployed"}
table := abraFormatter.CreateTable(tableCol)