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

Function DisplayNotLoggedInText

command/display_not_logged_in.go:5–11  ·  view source on GitHub ↗
(binaryName string, ui UI)

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func DisplayNotLoggedInText(binaryName string, ui UI) {
6 ui.DisplayText("Not logged in. Use '{{.CFLoginCommand}}' or '{{.CFLoginCommandSSO}}' to log in.",
7 map[string]interface{}{
8 "CFLoginCommand": fmt.Sprintf("%s login", binaryName),
9 "CFLoginCommandSSO": fmt.Sprintf("%s login --sso", binaryName),
10 })
11}

Callers 2

showStatusMethod · 0.92
displayTargetMethod · 0.92

Calls 1

DisplayTextMethod · 0.65

Tested by

no test coverage detected