orhun / rustypaste-cli

A CLI tool for rustypaste
https://github.com/orhun/rustypaste
MIT License
56 stars 8 forks source link

Support different profiles #66

Open orhun opened 11 months ago

orhun commented 11 months ago

It would be nice to support different profiles for the CLI. For example:

$ rpaste --profile shuttle test.txt # uploads the file to https://rustypaste.shuttleapp.rs/

$ rpaste --profile localhost test.txt # uploads the file to the local server

We should probably tweak the config file to use [[profile]]. Not sure yet, ideas are welcome!

tessus commented 10 months ago

This sounds like a great idea. It might be a bit challenging to keep it backwards compatible. It should also be possible to have a default profile, if no --profile argument is given.

I'd love to look into this, but I doubt I will be able to for the time being.

orhun commented 10 months ago

Exactly!

I don't think there is anyone else working on this right now, do you want me to assign this issue to you? You can look into it whenever you have the chance 🐻

tessus commented 10 months ago

I don't want to block anyone who wants to pick this up. I really have no idea when I will get to it.

orhun commented 10 months ago

Gotcha, no worries!