(context flags.FlagContext, appName string)
| 159 | } |
| 160 | |
| 161 | func (cmd *Scale) confirmRestart(context flags.FlagContext, appName string) bool { |
| 162 | if context.Bool("f") { |
| 163 | return true |
| 164 | } |
| 165 | |
| 166 | result := cmd.ui.Confirm(T("This will cause the app to restart. Are you sure you want to scale {{.AppName}}?", |
| 167 | map[string]interface{}{"AppName": terminal.EntityNameColor(appName)})) |
| 168 | cmd.ui.Say("") |
| 169 | return result |
| 170 | } |
| 171 | |
| 172 | func anyFlagsSet(context flags.FlagContext) bool { |
| 173 | return context.IsSet("m") || context.IsSet("k") || context.IsSet("i") |
no test coverage detected