forked from rakyll/drive
-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
share implemented role and accountType + message + notification sending
- Loading branch information
Emmanuel Odeke
committed
Jan 18, 2015
1 parent
16090aa
commit 619fc2d
Showing
7 changed files
with
241 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ | |
- [Pushing](#pushing) | ||
- [Publishing](#publishing) | ||
- [Unpublishing](#unpublishing) | ||
- [Sharing](#sharing) | ||
- [Unsharing](#unsharing) | ||
- [Touching](#touch) | ||
- [Trashing and Untrashing](#trashing-and-untrashing) | ||
- [Emptying the Trash](#emptying-the-trash) | ||
|
@@ -156,6 +158,28 @@ The `unpub` command is the opposite of `pub`. It unpublishes a previously publis | |
$ drive unpub photos | ||
``` | ||
|
||
### Sharing | ||
|
||
The `share` command enables you to share a set of files with specific users and assign them specific roles as well as specific generic access to the files. | ||
|
||
```shell | ||
$ drive share -emails [email protected],[email protected] -message "This is the substring file I told you about" -role writer -type group mnt/substringfinder.c projects/kmp.c | ||
``` | ||
|
||
For example to share a file with users of a mailing list and a custom message | ||
|
||
```shell | ||
$ drive share -emails [email protected] -message "Here is the drive code" -role group mnt/drive | ||
``` | ||
|
||
### Unsharing | ||
|
||
The `unshare` command revokes access of a specific accountType to a set of files. | ||
|
||
```shell | ||
$ drive unshare -type group mnt/drive | ||
``` | ||
|
||
### Touching | ||
|
||
Files that exist remotely can be touched i.e their modification time updated to that on the remote server using the `touch` command: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters