MCPcopy Index your code
hub / github.com/cloudfoundry/cli / confirmRestart

Method confirmRestart

cf/commands/application/scale.go:161–170  ·  view source on GitHub ↗
(context flags.FlagContext, appName string)

Source from the content-addressed store, hash-verified

159}
160
161func (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
172func anyFlagsSet(context flags.FlagContext) bool {
173 return context.IsSet("m") || context.IsSet("k") || context.IsSet("i")

Callers 1

ExecuteMethod · 0.95

Calls 4

EntityNameColorFunction · 0.92
BoolMethod · 0.65
ConfirmMethod · 0.65
SayMethod · 0.65

Tested by

no test coverage detected