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
ChatGPT.nvim/lua/chatgpt/api.lua
Line 174 in 8191b4a
Is there a way this can be changed so I can use a pipe in my command?
I'd like to use:
Using only
rbw get -f OPENAI_API_KEY chat.openai.comgets a custom field from the entry but its output format is: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