efugier / smartcat

Putting a brain behind `cat`🐈‍⬛ Integrating language models in the Unix commands ecosystem through text streams.
https://crates.io/crates/smartcat
Apache License 2.0
77 stars 9 forks source link

feat(config): command to run to get api key #8

Closed efugier closed 7 months ago

efugier commented 7 months ago

6

liborw commented 7 months ago

The Command::new(...) can't be initialized with the whole command line, but just the executable, "pass" for example and then the rest of the arguments are added with with .arg(...) function, one by one.

efugier commented 7 months ago

@liborw it should be good now, I had to revamp the config creation a bit for it to still make sense. I like this way of getting credentials, thanks a lot for your suggestion!