jaxxstorm / aws-sso-creds

Get AWS SSO temporary creds from an SSO profile
MIT License
187 stars 24 forks source link

refactor the list commands #4

Open jaxxstorm opened 4 years ago

jaxxstorm commented 4 years ago

The list commands were thrown in last minute, and have a lot of copy+pasted code in them. It would be better to have the functions etc in those commands abstracted as packages which retrieve a token.

In addition to this list roles currently only takes an accountid. We could add functionality that lists all accounts and roles if no argument is provided.