dropbox / dbxcli

A command line client for Dropbox built using the Go SDK
Other
1.05k stars 100 forks source link

Added Token Profiles #165

Open WillFantom opened 3 years ago

WillFantom commented 3 years ago

This PR adds in profiles that allow for more accounts to defined in the configuration simultaneously! I imagine this is not a common use case, but it was noted in #70 so I gather I am not alone...

The profile can be set in the configuration file itself (now $HOME/.config/dbxcli.json) with the profile key, or it can be set via flags: --profile <name>. It defaults to the profile default.

To make future changes to the app configuration easier, I have also rewritten some configuration aspects using Viper. Using this, the app will use the configuration path noted above by default, yet if a dbxcli.json is found in the local dir or /config/, that will be used.

WillFantom commented 3 years ago

Bumped to Go version 1.16.x to allow CI to run successfully

WillFantom commented 3 years ago

This also fixes the env default value mistake (I think) that can be found here

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.