-
Notifications
You must be signed in to change notification settings - Fork 426
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
Resource configuration file #259
Conversation
Cc @nkmathew @paulgregg @dolohow @glebm I think I finally have a working prototype. I'd kindly like to ask if you could help me test it out. For testing, am rolling it out on commands push, pull and list. The idea is that you can have a .driverc file in any directory, root, or in $HOME and inside it you can set the options like you would on the command line. page_size=10
depth=20
skip-mime=csv
directories=true
skip-owner=""
shared=true
depth=10
no-prompt=true
verbose=true To test it out, please run this script #!/bin/bash
# Assuming you properly set your Gopath, this script will help checkout and test "rc-file" on drive
cd $GOPATH/src/github.com/odeke-em || (echo "Failed to find odeke-em in \$GOPATH, try go get -u -v github.com/odeke-em/drive/cmd/drive" && exit)
cd drive && git fetch --all && git checkout rc-file && git pull origin rc-file && cd ..
cd command && git fetch --all && git checkout track-visited && git pull origin track-visited && cd ..
go get github.com/odeke-em/drive/drive-gen && drive-gen |
Hey @nkmathew you could go through the commands in the script that I provided? |
Use elem.Interface() to get the value instead of implicitly relying on fmt.*Printf("%v", elem) due to a discrepenacy between Go1.5 and < Go1.5 ie golang/go#12954
This PR is a work in progress to address #199.
Once complete it will enable users to create resource configurations globally e.g
~/.drive_rc
as well as resource configurations for each Google Drive account mounted e.g
~/school_drive/.drive_rc
,~/drives/construction_drive/.drive_rc