TACC-Cloud / agave-cli

The Tapis CLI
Other
4 stars 8 forks source link

Login code cleanup #81

Open alejandrox1 opened 5 years ago

alejandrox1 commented 5 years ago

Is your feature request related to a problem? Please describe. The majority of scripts will check if a user already has an access token or create it for the user. The code that does this is repeated throughout the place. i.e.,

https://github.com/TACC-Cloud/agave-cli/blob/db55abbf7812e6f96f6489d208a03f8fbec90bdf/bin/files-cp#L49-L60

Describe the solution you'd like This could all very well be organized into a function, login(), that all other scripts can import.