GitXplorerGitXplorer
m

docshare

public
0 stars
0 forks
1 issues

Commits

List of commits on branch master.
Verified
f8dc6eecba9e102154fc144bb9819f29ab6c14af

Merge pull request #3 from x1ddos/patch-retry

mmco-gh committed 7 years ago
Unverified
b386b93f29eb2517492fbde1444b10e6688823a4

nits in patch-retry: deferred stream close

committed 7 years ago
Verified
39800df1dc387d899030622737b0f9d210f42b22

Merge pull request #2 from x1ddos/patch-team-drive

mmco-gh committed 7 years ago
Unverified
59073c3171314c7c94f0e9f71178f506bd2227b1

Make API calls retry with exponential backoff

committed 7 years ago
Unverified
74d4a6af78e2ec804643da2986da920ad1ccd298

Support for Team Drive

committed 7 years ago
Unverified
f0754885ca231cb8565d9d053b5f35fc74688a43

check in initial version of docshare

mmco-gh committed 8 years ago

README

The README file for this repository.

Docshare

This tool facilitates bulk doc sharing. Its initial use case is to easily share all codelab source docs with the service account for the publisher app, which is required for the "push to publish" feature, however, it can be used generally to automate sharing any number of docs with a given user.

It takes an email address (the party with whom you would like to share or unshare the requested doc(s)) and one or more doc IDs. For example, You could share docs doc-id-1 and doc-id-2 with userA, and unshare the same docs with userB, using the following command:

docshare -a userA -r userB doc-id-1 doc-id-2

If you have a large set of docs to share you can pipe a stream of doc IDs into the xargs command, like this:

`cat file_of_doc_ids | xargs docshare -a email-addr` # share
`cat file_of_doc_ids | xargs docshare -r email-addr` # unshare

Disclaimer: This is not an official Google product.