Skip to content

Remove "Getting OAuth token...\nOK" from cf oauth-token command #752

@youngm

Description

@youngm

The oauth-token command is awesome. However, I cannot use it for inline command executions because it outputs some non token content which means I cannot use it inline with something like curl:

curl -H "Authorization: $(cf oauth-token)" https://api.cf.com/v2/apps

I'd be happy to submit a PR that either removes the "OK" output or add a parameter that when specified removes the "OK" output. Which would you prefer?

Mike

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions