Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

rad auth non-interactive output #269

Open
gsaslis opened this issue Oct 12, 2022 · 1 comment
Open

rad auth non-interactive output #269

gsaslis opened this issue Oct 12, 2022 · 1 comment

Comments

@gsaslis
Copy link

gsaslis commented Oct 12, 2022

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
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants