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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8cd558a
rc util added
odeke-em May 20, 2015
db1d44f
Merge branch 'master' into rc-file
Jun 2, 2015
0749035
.rc: find global and local rc files + misc funcs
odeke-em Jun 2, 2015
6be065d
.driverc: now parsing rcOptions
odeke-em Jun 3, 2015
69f18f6
readying for default options
odeke-em Jun 3, 2015
3b99690
cmd/drive/main.go: tracking definedFlags
odeke-em Jun 6, 2015
d05dd7e
merge from master
odeke-em Jul 5, 2015
bbb3949
merge from master
odeke-em Jul 29, 2015
57483e1
merge from master
odeke-em Jul 29, 2015
737dbed
Merge branch 'master' into rc-file
odeke-em Aug 8, 2015
f863445
rcfile: more tinkering
odeke-em Aug 10, 2015
2728375
Merge branch 'master' into rc-file
odeke-em Aug 16, 2015
0b61c8a
merge + fix from master
odeke-em Aug 16, 2015
8614778
rc-file: now linking defaultOptions with parsedOptions
odeke-em Aug 22, 2015
4ed6f0a
Merge branch 'master' into rc-file
odeke-em Aug 27, 2015
6928f04
rc-file extra changes
odeke-em Aug 28, 2015
269fd39
Merge branch 'master' into rc-file
odeke-em Sep 19, 2015
dca4c6c
rc-file: expandVar + changed up options retrieval
odeke-em Sep 19, 2015
f534a9f
Merge branch 'master' into rc-file
Oct 3, 2015
fce2bc6
resource config: switching to using json tags + marshalling
Oct 3, 2015
61d1789
merge from master
Oct 10, 2015
4a3850b
rc-file: working prototype!
Oct 14, 2015
2f25164
merge from master plus fixes
Oct 14, 2015
02b4bc1
rc-file: walk up for .rc file + pull retrofit
Oct 14, 2015
bdec0e0
rc-file: quick refactor before class
Oct 15, 2015
251bcfd
rc-file: prepared each cmd for json ops
Oct 16, 2015
2936520
rc-file: ignore not found rc-related errors for now
Oct 17, 2015
902cd5e
rc-file: use elem.Interface() to get value
Oct 21, 2015
ee7193b
rc-file: merge from master and fixes
Oct 21, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- [Move](#move)
- [Rename](#rename)
- [DriveIgnore](#driveignore)
- [DriveRC](#driverc)
- [DesktopEntry](#desktopentry)
- [Command Aliases](#command-aliases)
- [Index Prune](#index-prune)
Expand Down Expand Up @@ -849,8 +850,32 @@ $ cat << $ >> .driveignore
> $
```


Note: Pattern matching and suffixes are done by regular expression matching so make sure to use a valid regular expression suffix.


### DriveRC

drive supports resource configuration files (.driverc) that you can place both globally(in your home directory) and locally(in the mounted drive dir):

```shell
$ cat << ! >> ~/.driverc
> # My local .driverc file
> exports=doc,pdf
> depth=100
> !
$
$ cat << $ >> ~/emm.odeke-drive/.driverc
> # My global .driverc file
> exports-dir=$HOME/Desktop/exports
> exports=pdf,csv,txt
> hidden=true
> depth=10
> exclude-ops=delete,update
> $
```


## DesktopEntry

As previously mentioned, Google Docs, Drawings, Presentations, Sheets etc and all files affiliated
Expand Down
Loading