drive:support-gs-script-export

Last commit made on 2017-01-24
Get this branch:
git clone -b support-gs-script-export https://git.launchpad.net/drive

Branch merges

Branch information

Name:
support-gs-script-export
Repository:
lp:drive

Recent commits

93be68d... by Emmanuel T Odeke <email address hidden>

Merge pull request #845 from ptman/patch-1

README: fix some export* inconsistencies in documentation

52aed62... by Emmanuel Odeke <email address hidden>

version bump to v0.3.9.1 to refresh PPA builds

Updates
https://github.com/odeke-em/drive/pull/855#issuecomment-274678597.

Bump up the version by a minor point so that PPA builds can
be refreshed and built with at least go1.7.

4329fff... by Emmanuel Odeke <email address hidden>

README: bump minimum Go version to 1.7.X

Fixes #852.
Fixes #853.
Fixes #854.

Set the minimum Go version to 1.7.X.
Most of the Go versions below go1.7 are no longer even
supported. It is better to have the latest and greatest
with new features and more good things.

a6b4c6a... by Emmanuel Odeke <email address hidden>

pull/push: allow fix-mode selection

Fixes #836.

pull and push now have `-fix-mode` as an option to allow selecting
either "rename" or "trash" as the action to perform on fixing clashes.

```shell
$ drive push -fix-clashes -fix-mode trash a1 notes
$ drive pull -fix-clashes -fix-mode rename 2016 patents
```

4ffe8f3... by =?utf-8?q?Paul_T=C3=B6tterman?= <email address hidden>

Fix some inconsistencies in documentation

I believe these are the actual forms supported by the tool today

5278f2b... by Emmanuel Odeke <email address hidden>

push: customizable upload chunk size

Updates
https://github.com/odeke-em/drive/issues/28#issuecomment-84650909.

Allows one to customize the upload chunk size in bytes.
By default, the internal Google API's upload chunk size is 8MiB,
minimum chunk size is 256KiB. Any custom chunk size should be at
least 256KiB and also a multiple of 256KiB. Please see
https://godoc.org/google.golang.org/api/googleapi#pkg-constants.

* Exhibit:
```shell
$ drive push -upload-chunk-size 524288 demo.mp4
```

a9f53bc... by Emmanuel Odeke <email address hidden>

about: bump version to v0.3.9!

Release version v0.3.9.

7ee7c96... by Emmanuel Odeke <email address hidden>

stat/md5: allow op on depth=0 for dir children

Fixes https://github.com/odeke-em/drive/issues/783.

Ensures that for a directory, after decrementing the depth
by 1 in the parent's first pass that we at least operate on
passed in files instead of erraneously ending on that depth.
Traversal depth is meant for traversing directories/folders
and less on actual files.

This change leads us to conform to the proper behavior exhibited
by `drive list`.

bf5b270... by Emmanuel Odeke <email address hidden>

replace DEBUG with DRIVE_DEBUG to avoid other program clashes

Updates https://github.com/odeke-em/drive/pull/830.

Replace `DEBUG` with `DRIVE_DEBUG` to avoid clashes with other
programs that might need the `DEBUG` flag. `DRIVE_DEBUG` makes
it clear that this debug is only for drive.

467def2... by Emmanuel Odeke <email address hidden>

command: introduce DebugPrintf

Introduce DebugPrintf which can be used to give
contextual and debug information when things go wrong
and we need to observe them, when verbose or `DEBUG=true`
is set in the environment.

So far added debugging prints when parsing the .driverc file.
It prints out the:
[<FILE>:<FUNCTION>:<LINE_NUMBER>]

Prefix a drive invocation with `DEBUG=true`
```shell
$ DEBUG=true drive list share-testing/
[/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/cmd/drive/main.go:main.discoverContext:1857]
contextPath: /<email address hidden>/share-testing
[/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/cmd/drive/main.go:main.discoverContext:1867]
driveRoot: "/<email address hidden>" relToRoot: ""

[/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/src/rc.go:github.com/odeke-em/drive/src.ResourceMappings:92]
RCPath: /<email address hidden>/share-testing/.driverc
[/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/src/rc.go:github.com/odeke-em/drive/src.ResourceMappings:108]
parsedContent from
"/<email address hidden>/share-testing/.driverc"
{
  "global": {
    "depth": -1
  }
}
[Commands.List] #0 "/share-testing"
-- owner 175.00B 0Bwu8laYc9RTPa28zVk9Td2hTVWc 2016-06-30
15:32:25 +0000 UTC /share-testing/SciqPCKrhi.go
-- owner 309.00B 0Bwu8laYc9RTPTXRYblNqQXBSQzQ 2016-02-03
08:12:15 +0000 UTC /share-testing/outf.go
-s owner 39.70KB 0Bwu8laYc9RTPOVNSeElpdFBpS2M 2012-02-02
12:00:00 +0000 UTC /share-testing/ComedyPunchlineDrumSound.mp3
```

It will alleviate https://github.com/odeke-em/drive/issues/829
since the reporter could then investigate and see the .gd path and
.driverc paths that were being read from.