RasmusLindroth / tut

TUI for Mastodon with vim inspired keys
https://tut.anv.nu
MIT License
450 stars 29 forks source link

1password CMD error #280

Open bennysp opened 3 months ago

bennysp commented 3 months ago

I am sure the error is probably on my end, in not doing this correctly, but when I run tut, I get this error when trying to use the 1password CLI:

2024/07/21 18:54:45 Couldn't run CMD on auth-file. Error; exit status 1

Here is my accounts config (I have ran these commands outside of tut - the -n also removes the newline)

[[Accounts]]
Name = 'bennysp'
Server = 'https://fosstodon.org'
ClientID = '!CMD!op read -n "op://path/to/id"'
ClientSecret = '!CMD!op read -n "op://path/to/secret"'
AccessToken = '!CMD!op read -n "op://path/to/accesstoken"'

Is there a way to debug why it is erroring?

bennysp commented 3 months ago

My path has spaces, so I just tried to remove the quotes and add \ to escape the spaces (works on the 1password cli command). That did not change the behavior either.