forked from toolshed/abra
feat: support no-input mode for deploy ops
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user