radicle-cli icon indicating copy to clipboard operation
radicle-cli copied to clipboard

`rad auth` non-interactive output

Open gsaslis opened this issue 2 years ago • 1 comments

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 ?

gsaslis avatar Oct 12 '22 14:10 gsaslis

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.

cloudhead avatar Oct 12 '22 14:10 cloudhead