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

Method MetaData

cf/commands/auth.go:26–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (cmd *Authenticate) MetaData() commandregistry.CommandMetadata {
27 return commandregistry.CommandMetadata{
28 Name: "auth",
29 Description: T("Authenticate user non-interactively"),
30 Usage: []string{
31 T("CF_NAME auth USERNAME PASSWORD\n\n"),
32 terminal.WarningColor(T("WARNING:\n Providing your password as a command line option is highly discouraged\n Your password may be visible to others and may be recorded in your shell history")),
33 },
34 Examples: []string{
35 T("CF_NAME auth name@example.com \"my password\" (use quotes for passwords with a space)"),
36 T("CF_NAME auth name@example.com \"\\\"password\\\"\" (escape quotes if used in password)"),
37 },
38 }
39}
40
41func (cmd *Authenticate) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) ([]requirements.Requirement, error) {
42 if len(fc.Args()) != 2 {

Callers

nothing calls this directly

Calls 1

WarningColorFunction · 0.92

Tested by

no test coverage detected