Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiple accounts in config | Fix #98
Add four new flags * -a | --account - Use a different account than default * -la | --list accounts - List all the accounts configured with CLIENT_ID, CLIENT_SECRET and REFRESH_TOKEN * -ca | --create-account - Create a new account * -da | --delete-account - Delete an existing account --list-accounts, --create-accounts and --delete-account flags can be used without any usual input required The config format is changed, ACCOUNT_${account}_ prefix is added to every config var, where ${account} is the account name The old configs will be automatically migrated with account name default( if default taken then a number suffix will be added like default1, default2, etc ) move authentication/config related functions to auth-utils.[bash|sh] create more authentication functions to reduce some clutter add a lot of error checks, minute situations like chmod failing, failing to write to config file bash script changes: export all sub functions in their sub scripts export variables when it is created that are needed for parallel uploads
- Loading branch information