radicle-dev / radicle-cli

Radicle CLI
https://app.radicle.network/alt-clients.radicle.eth/radicle-cli
GNU General Public License v3.0
87 stars 22 forks source link

`rad auth` non-interactive output #269

Open gsaslis opened 2 years ago

gsaslis commented 2 years ago

In the IDE plugin, we want to show the user the list of identities.

rad auth returns the list of identities, but in interactive mode only - making it unsuitable for wrapping in other scripts. Our only option currently (to the best of our knowledge) is to read the platform-dependent filesystem directory where keys are stored. This is ugly, error-prone and introduces another dependency on our side that we really don't want to have: the way keys are stored in the filesystem. That feels like an internal implementation detail of the rad cli that we really shouldn't care about.

Could an option be added to rad auth (e.g. --list | -l ) such that it only returns the list of identities / names / profile IDs ?

cloudhead commented 2 years ago

Yeah, seems like a good idea. I'm still trying to decide how we will handle multiple identities per device in Heartwood though, so don't want to put too much work into this yet.