MCPcopy
hub / github.com/cloudfoundry/cli / confirmWithUser

Method confirmWithUser

cf/commands/plugin/install_plugin.go:169–171  ·  view source on GitHub ↗
(c flags.FlagContext, prompt string)

Source from the content-addressed store, hash-verified

167}
168
169func (cmd *PluginInstall) confirmWithUser(c flags.FlagContext, prompt string) bool {
170 return c.Bool("f") || cmd.ui.Confirm(prompt)
171}
172
173func (cmd *PluginInstall) ensurePluginBinaryWithSameFileNameDoesNotAlreadyExist(pluginDestinationFilepath, pluginExecutableName string) error {
174 _, err := os.Stat(pluginDestinationFilepath)

Callers 1

ExecuteMethod · 0.95

Calls 2

BoolMethod · 0.65
ConfirmMethod · 0.65

Tested by

no test coverage detected