()
| 24 | } |
| 25 | |
| 26 | func (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 | |
| 41 | func (cmd *Authenticate) Requirements(requirementsFactory requirements.Factory, fc flags.FlagContext) ([]requirements.Requirement, error) { |
| 42 | if len(fc.Args()) != 2 { |
nothing calls this directly
no test coverage detected