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

Resource configuration file #259

Merged
merged 29 commits into from
Oct 21, 2015
Merged

Resource configuration file #259

merged 29 commits into from
Oct 21, 2015

Conversation

odeke-em
Copy link
Owner

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

@odeke-em
Copy link
Owner Author

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.
Here is my .driverc file

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

@nkmathew
Copy link

Having trouble building mine. Don't know my way around golang errors
image

@odeke-em
Copy link
Owner Author

Hey @nkmathew you could go through the commands in the script that I provided?
Please make sure odeke-em/command is on branch track-visited first before building.

Emmanuel Odeke added 5 commits October 15, 2015 13:52
odeke-em pushed a commit that referenced this pull request Oct 21, 2015
Resource configuration file
@odeke-em odeke-em merged commit f6fdec6 into master Oct 21, 2015
@odeke-em odeke-em deleted the rc-file branch October 21, 2015 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants