Skip to content

api_key_cmd with pipes (|) ?  #280

Description

@sedlund

command = cmd[1],

Is there a way this can be changed so I can use a pipe in my command?

I'd like to use:

api_cmd_key = "rbw get -f OPENAI_API_KEY chat.openai.com | awk '{print $2}'"

Using only rbw get -f OPENAI_API_KEY chat.openai.com gets a custom field from the entry but its output format is:

OPENAI_API_KEY: sk-fda94jf88gfdssblah

so I need to pipe to awk, sed, cut, jq or something. I wrote a wrapper script which works, but this is not ideal for having my config files be portable.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions