Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request for a resource configuration file #199

Closed
nkmathew opened this issue May 15, 2015 · 11 comments
Closed

Feature request for a resource configuration file #199

nkmathew opened this issue May 15, 2015 · 11 comments
Assignees
Milestone

Comments

@nkmathew
Copy link

Something like a .driverc file? I use --hidden=true often and would like something other than aliases.

@odeke-em
Copy link
Owner

Hello @nkmathew thank you for reporting this and welcome to drive!
+1, great suggestion. So would a local .driverc in your .gd dir as well as global ~/.driverc suffice?

@odeke-em odeke-em added this to the v0.2.2 milestone May 15, 2015
@nkmathew
Copy link
Author

In the home folder preferably. Placing one in the .gd folder seems unnatural

@odeke-em
Copy link
Owner

I see, although drive supports an infinite number of accounts mounted, so maybe multiple different configurations. This is analogous to have a special .driveignore file for each account.

@nkmathew
Copy link
Author

Wasn't aware of that. Sounds fair

@odeke-em
Copy link
Owner

I'll work on this later on when I get home, this is going to be a big win for lots of users because then defaults can be set once and for all. Thanks again for reporting this.

@odeke-em odeke-em removed this from the v0.2.2 milestone May 17, 2015
@dolohow
Copy link

dolohow commented May 17, 2015

👍 for this

@paulgregg
Copy link

+1
I'd like to be able to set a default of --exclude-ops "delete" so all push/pull commands don't delete anything, ever. My use case is backing up the irreplaceable data (personal photos) from my NAS (60GB out of 7TB data). I don't need to backup movies or tv, so I want to push Photos folder only. If when I pull, I don't want to accidentally delete everything local that isn't in Drive.

@odeke-em
Copy link
Owner

Sorry for the really late reply folks. I had actually implemented most of it in mid May as you'll see from commits in the PR #259. However, I am not yet decided on how to get the unused flags per command, but I'll be working on that sometime this week. Please watch this space and thank you for your patience.

@nkmathew
Copy link
Author

nkmathew commented Aug 9, 2015

Did you manage to get it working?

@odeke-em
Copy link
Owner

odeke-em commented Aug 9, 2015

Hello @nkmathew, unfortunately I haven't glued everything together yet. The trouble is piecing together the defaults and then the defined args: separately they are being parsed alright. What is left is figuring out if a flag was defined -- for that I worked on odeke-em/command@3e1c027. I'll try one more thing that I just got an idea for, to correlate defined flags, rc-read/default flags.

@odeke-em
Copy link
Owner

Addressed by PR #259. Thank you for requesting this feature and for the patience. Please get the latest from master by running

$ go get -u -v github.com/odeke-em/drive/drive-gen && drive-gen

@odeke-em odeke-em self-assigned this Oct 21, 2015
@odeke-em odeke-em added this to the v0.3.2 milestone Oct 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants