feat: add --show-unchanged/-U option
This commit is contained in:
@ -196,13 +196,13 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
||||
}
|
||||
|
||||
// Gather configs
|
||||
configInfo, err := deploy.GatherConfigsForDeploy(cl, app, compose, app.Env)
|
||||
configInfo, err := deploy.GatherConfigsForDeploy(cl, app, compose, app.Env, internal.ShowUnchanged)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// Gather images
|
||||
imageInfo, err := deploy.GatherImagesForDeploy(cl, app, compose)
|
||||
imageInfo, err := deploy.GatherImagesForDeploy(cl, app, compose, internal.ShowUnchanged)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
@ -393,4 +393,12 @@ func init() {
|
||||
false,
|
||||
i18n.G("deploy latest recipe version"),
|
||||
)
|
||||
|
||||
AppDeployCommand.Flags().BoolVarP(
|
||||
&internal.ShowUnchanged,
|
||||
i18n.G("show-unchanged"),
|
||||
i18n.G("U"),
|
||||
false,
|
||||
i18n.G("show all configs & images, including unchanged ones"),
|
||||
)
|
||||
}
|
||||
|
@ -192,13 +192,13 @@ beforehand. See "abra app backup" for more.`),
|
||||
}
|
||||
|
||||
// Gather configs
|
||||
configInfo, err := deploy.GatherConfigsForDeploy(cl, app, compose, app.Env)
|
||||
configInfo, err := deploy.GatherConfigsForDeploy(cl, app, compose, app.Env, internal.ShowUnchanged)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// Gather images
|
||||
imageInfo, err := deploy.GatherImagesForDeploy(cl, app, compose)
|
||||
imageInfo, err := deploy.GatherImagesForDeploy(cl, app, compose, internal.ShowUnchanged)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
@ -362,4 +362,12 @@ func init() {
|
||||
false,
|
||||
i18n.G("disable converge logic checks"),
|
||||
)
|
||||
|
||||
AppRollbackCommand.Flags().BoolVarP(
|
||||
&internal.ShowUnchanged,
|
||||
i18n.G("show-unchanged"),
|
||||
i18n.G("U"),
|
||||
false,
|
||||
i18n.G("show all configs & images, including unchanged ones"),
|
||||
)
|
||||
}
|
||||
|
@ -218,13 +218,13 @@ beforehand. See "abra app backup" for more.`),
|
||||
}
|
||||
|
||||
// Gather configs
|
||||
configInfo, err := deploy.GatherConfigsForDeploy(cl, app, compose, app.Env)
|
||||
configInfo, err := deploy.GatherConfigsForDeploy(cl, app, compose, app.Env, internal.ShowUnchanged)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// Gather images
|
||||
imageInfo, err := deploy.GatherImagesForDeploy(cl, app, compose)
|
||||
imageInfo, err := deploy.GatherImagesForDeploy(cl, app, compose, internal.ShowUnchanged)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
@ -480,4 +480,12 @@ func init() {
|
||||
false,
|
||||
i18n.G("only show release notes"),
|
||||
)
|
||||
|
||||
AppUpgradeCommand.Flags().BoolVarP(
|
||||
&internal.ShowUnchanged,
|
||||
i18n.G("show-unchanged"),
|
||||
i18n.G("U"),
|
||||
false,
|
||||
i18n.G("show all configs & images, including unchanged ones"),
|
||||
)
|
||||
}
|
||||
|
@ -19,4 +19,5 @@ var (
|
||||
Minor bool
|
||||
NoDomainChecks bool
|
||||
Patch bool
|
||||
ShowUnchanged bool
|
||||
)
|
||||
|
Reference in New Issue
Block a user