feat: whoami: updated whoami to show the path to the config if that is what is being used#84
feat: whoami: updated whoami to show the path to the config if that is what is being used#84kevkevinpal wants to merge 3 commits intoresend:mainfrom
Conversation
3dcb707 to
c0bdae3
Compare
c0bdae3 to
7e73419
Compare
|
Thanks for this contribution! Since this was opened, we've landed secure credential storage (#97), which stores API keys in the OS keychain (macOS Keychain, Linux secret-service, Windows Credential Manager) rather than in credentials.json. With that change, pointing users to the credentials file wouldn't be accurate for keychain users. |
Awesome, that looks like a significant improvement.
Is there a chance that it can be still saved to a |
We still use the config file for storing profiles, and it's possible for users to choose insecure storage manually |
I think it then makes sense to still display this in those cases where the config is used |
Summary
I wanted a way to know where my config/api keys were stored other than on login/logout. So I added a new output to
whoamito show the config path if we are using a config.Example
With no
--jsonSummary by cubic
Updated
whoamito show the full path to the credentials file when the API key comes from config. This makes it easy to find where keys are stored.config_pathin JSON output and a "Config:" line in standard output when the source isconfig, showing the full path tocredentials.jsonfromgetConfigDir.Written for commit f8cacb2. Summary will update on new commits.