Merge pull request #10800 from medyagh/usage_err_break
ui: break down usage for no profile foundpull/10810/head
commit
b6c41014a4
|
@ -77,7 +77,7 @@ func printProfilesTable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(validProfiles) == 0 {
|
if len(validProfiles) == 0 {
|
||||||
exit.Message(reason.Usage, "No minikube profile was found. You can create one using `minikube start`.")
|
exit.Message(reason.UsageNoProfileRunning, "No minikube profile was found. ")
|
||||||
}
|
}
|
||||||
|
|
||||||
updateProfilesStatus(validProfiles)
|
updateProfilesStatus(validProfiles)
|
||||||
|
|
|
@ -72,7 +72,12 @@ func (k *Kind) IssueURLs() []string {
|
||||||
|
|
||||||
// Sections are ordered roughly by stack dependencies
|
// Sections are ordered roughly by stack dependencies
|
||||||
var (
|
var (
|
||||||
Usage = Kind{ID: "MK_USAGE", ExitCode: ExProgramUsage}
|
Usage = Kind{ID: "MK_USAGE", ExitCode: ExProgramUsage}
|
||||||
|
UsageNoProfileRunning = Kind{ID: "MK_USAGE_NO_PROFILE", ExitCode: ExProgramUsage,
|
||||||
|
Advice: `You can create one using 'minikube start'.
|
||||||
|
`,
|
||||||
|
Style: style.Caching,
|
||||||
|
}
|
||||||
Interrupted = Kind{ID: "MK_INTERRUPTED", ExitCode: ExProgramConflict}
|
Interrupted = Kind{ID: "MK_INTERRUPTED", ExitCode: ExProgramConflict}
|
||||||
|
|
||||||
WrongBinaryWSL = Kind{ID: "MK_WRONG_BINARY_WSL", ExitCode: ExProgramUnsupported}
|
WrongBinaryWSL = Kind{ID: "MK_WRONG_BINARY_WSL", ExitCode: ExProgramUnsupported}
|
||||||
|
|
Loading…
Reference in New Issue