MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / checkTargetAndExit

Function checkTargetAndExit

hoverctl/cmd/utils.go:29–33  ·  view source on GitHub ↗
(target *configuration.Target)

Source from the content-addressed store, hash-verified

27}
28
29func checkTargetAndExit(target *configuration.Target) {
30 if target == nil {
31 handleIfError(fmt.Errorf("%[1]s is not a target\n\nRun `hoverctl targets create %[1]s`", targetNameFlag))
32 }
33}
34
35func askForConfirmation(message string) bool {
36 if force {

Callers 15

logs.goFile · 0.85
journalindex.goFile · 0.85
postserveaction.goFile · 0.85
stop.goFile · 0.85
export.goFile · 0.85
start.goFile · 0.85
mode.goFile · 0.85
status.goFile · 0.85
diff.goFile · 0.85
middleware.goFile · 0.85
flush.goFile · 0.85
delete.goFile · 0.85

Calls 1

handleIfErrorFunction · 0.85

Tested by

no test coverage detected