forked from labbots/google-drive-upload
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1/2] Add support for multiple accounts in config | Fix labbots#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 The config format is changed, ACCOUNT_${account}_ prefix is added to every config var, where ${account} si 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]
- Loading branch information
1 parent
28cd628
commit 36e0fa5
Showing
13 changed files
with
1,992 additions
and
727 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.