cloudapp 2.0.0.beta.1 → 2.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +5 -5
- data/README.md +1 -70
- data/cloudapp.gemspec +3 -6
- data/lib/cloudapp/service.rb +10 -10
- data/lib/cloudapp.rb +1 -1
- metadata +6 -9
- data/man/cloudapp.1 +0 -373
- data/man/cloudapp.1.html +0 -289
- data/man/cloudapp.1.ronn +0 -206
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,13 @@ Below is a complete listing of changes for each revision of `cloudapp`.
|
|
4
4
|
|
5
5
|
## Unreleased
|
6
6
|
|
7
|
+
- Use new [hypermedia CloudApp API][api].
|
8
|
+
- Extract CLI into [cloudapp-cli gem][cli].
|
9
|
+
- Much refactoring
|
10
|
+
|
11
|
+
[api]: http://developer.getcloudapp.com/api-v2/
|
12
|
+
[cli]: https://github.com/cloudapp/cloudapp-cli
|
13
|
+
|
7
14
|
## 1.1.0
|
8
15
|
|
9
16
|
- Add `download` command
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cloudapp (2.0.0.beta.
|
5
|
-
leadlight
|
4
|
+
cloudapp (2.0.0.beta.2)
|
5
|
+
leadlight
|
6
6
|
typhoeus (~> 0.3.3)
|
7
7
|
|
8
8
|
GEM
|
@@ -12,14 +12,14 @@ GEM
|
|
12
12
|
crack (0.3.1)
|
13
13
|
diff-lcs (1.1.3)
|
14
14
|
fail-fast (1.0.0)
|
15
|
-
faraday (0.8.
|
15
|
+
faraday (0.8.1)
|
16
16
|
multipart-post (~> 1.1)
|
17
17
|
fattr (2.2.1)
|
18
18
|
hookr (1.1.1)
|
19
19
|
fail-fast (= 1.0.0)
|
20
|
-
leadlight (0.0.
|
20
|
+
leadlight (0.0.6)
|
21
21
|
addressable
|
22
|
-
faraday
|
22
|
+
faraday (= 0.8.1)
|
23
23
|
fattr
|
24
24
|
hookr
|
25
25
|
link_header
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# CloudApp Ruby Client [![Build Status](https://secure.travis-ci.org/cloudapp/cloudapp.png)](http://travis-ci.org/cloudapp/cloudapp)
|
2
2
|
|
3
|
-
Interact with the [CloudApp API][] from Ruby.
|
4
|
-
interface to CloudApp as an added bonus.
|
3
|
+
Interact with the [CloudApp API][] from Ruby.
|
5
4
|
|
6
5
|
[cloudapp api]: http://developer.getcloudapp.com
|
7
6
|
|
@@ -13,71 +12,3 @@ interface to CloudApp as an added bonus.
|
|
13
12
|
## Usage
|
14
13
|
|
15
14
|
_Usage from Ruby is still a work in progress._
|
16
|
-
|
17
|
-
|
18
|
-
## CLI
|
19
|
-
|
20
|
-
Experience all the pleasures of sharing with CloudApp now in your terminal. The
|
21
|
-
goal of `cloudapp` is to be simple and Unix-friendly.
|
22
|
-
|
23
|
-
### Quick Start
|
24
|
-
|
25
|
-
gem install cloudapp
|
26
|
-
cloudapp list
|
27
|
-
cloudapp bookmark http://douglasadams.com
|
28
|
-
cloudapp upload ~/Desktop/screenshot.png
|
29
|
-
cloudapp download http://cl.ly/abc123
|
30
|
-
|
31
|
-
### Examples
|
32
|
-
|
33
|
-
- Bookmark a link: `cloudapp bookmark http://getcloudapp.com`
|
34
|
-
- Bookmark several links: `cloudapp bookmark http://douglasadams.com http://zombo.com`
|
35
|
-
- Share a file: `cloudapp upload screenshot.png`
|
36
|
-
- Share several files: `cloudapp upload *.png`
|
37
|
-
- List newest drops: `cloudapp list [--count=5]`
|
38
|
-
- Copy a new drop's link (OS X): `cloudapp bookmark http://douglasadams.com | pbcopy`
|
39
|
-
- Output drops in CSV: `cloudapp --format=csv list`
|
40
|
-
- Download a drop: `cloudapp download http://cl.ly/abc123`
|
41
|
-
|
42
|
-
More examples can be found on [the man page][man-page].
|
43
|
-
|
44
|
-
[man-page]: http://cloudapp.github.com/cloudapp
|
45
|
-
|
46
|
-
### Wish List
|
47
|
-
|
48
|
-
`cloudapp` could be awesome with a little more flare.
|
49
|
-
|
50
|
-
- Output specific columns: `cloudapp list --columns=name,views,link`
|
51
|
-
- Handle bookmarks from STDIN: `pbpaste | cloudapp bookmark`
|
52
|
-
- Handle files from STDIN: `find *.png | cloudapp upload`
|
53
|
-
- Archive and share several files: `cloudapp upload --archive *.png`
|
54
|
-
- Encrypt and share a file: `cloudapp upload --encrypt launch_codes.txt`
|
55
|
-
- Download and decrypt and encrypted drop: `cloudapp download --key=def456 http://cl.ly/abc123`
|
56
|
-
|
57
|
-
While we're dreaming, what could you do if `cloudapp` had a database of all your
|
58
|
-
drops? Bonus points for a light weight daemon that kept everything in sync at
|
59
|
-
all times.
|
60
|
-
|
61
|
-
- Find all your screen shots: `cloudapp list /^screen ?shot.*\.png$/`
|
62
|
-
- Trash all your stale drops: `cloudapp delete --last-viewed="> 1 month ago"`
|
63
|
-
- See your drop views in real time: `cloudapp --tail`
|
64
|
-
|
65
|
-
There's bound to be a better way to express some of these commands, but you get
|
66
|
-
the picture.
|
67
|
-
|
68
|
-
### Harness the Power
|
69
|
-
|
70
|
-
Sure you could copy the new drop's link by piping the output to `pbcopy`, but
|
71
|
-
that's a lot of extra key presses. Instead, try setting this super secret
|
72
|
-
Cloud.app preference:
|
73
|
-
|
74
|
-
defaults write com.linebreak.CloudAppMacOSX CLUploadShouldCopyExternallyUploadedItems -bool YES
|
75
|
-
|
76
|
-
Now after restarting Cloud.app, the link to every new drop shared with your
|
77
|
-
account--even using a tool other than the Mac app--will be copied to your Mac's
|
78
|
-
clipboard. If you're using the [stand-alone version][stand-alone] of Cloud.app
|
79
|
-
and not [the Mac App Store version][mas], use the domain
|
80
|
-
`com.linebreak.CloudAppMacOSXSparkle` instead.
|
81
|
-
|
82
|
-
[stand-alone]: http://getcloudapp.com/download
|
83
|
-
[mas]: http://itunes.apple.com/us/app/cloud/id417602904?mt=12&ls=1
|
data/cloudapp.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'cloudapp'
|
16
|
-
s.version = '2.0.0.beta.
|
17
|
-
s.date = '2012-08-
|
16
|
+
s.version = '2.0.0.beta.2'
|
17
|
+
s.date = '2012-08-20'
|
18
18
|
s.rubyforge_project = 'cloudapp'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
|
44
44
|
## List your runtime dependencies here. Runtime dependencies are those
|
45
45
|
## that are needed for an end user to actually USE your code.
|
46
|
-
s.add_dependency 'leadlight'
|
46
|
+
s.add_dependency 'leadlight'
|
47
47
|
s.add_dependency 'typhoeus', '~> 0.3.3'
|
48
48
|
|
49
49
|
## List your development dependencies here. Development dependencies are
|
@@ -77,9 +77,6 @@ Gem::Specification.new do |s|
|
|
77
77
|
lib/cloudapp/drop_collection.rb
|
78
78
|
lib/cloudapp/service.rb
|
79
79
|
lib/cloudapp/token.rb
|
80
|
-
man/cloudapp.1
|
81
|
-
man/cloudapp.1.html
|
82
|
-
man/cloudapp.1.ronn
|
83
80
|
spec/cassettes/create_bookmark.yml
|
84
81
|
spec/cassettes/create_bookmark_with_name.yml
|
85
82
|
spec/cassettes/create_bookmark_with_privacy.yml
|
data/lib/cloudapp/service.rb
CHANGED
@@ -10,10 +10,10 @@ module CloudApp
|
|
10
10
|
url 'https://api.getcloudapp.com'
|
11
11
|
tints << CollectionJson::Tint
|
12
12
|
tints << AuthorizedRepresentation::Tint
|
13
|
-
end
|
14
13
|
|
15
|
-
|
16
|
-
|
14
|
+
build_connection do |c|
|
15
|
+
c.adapter :typhoeus
|
16
|
+
end
|
17
17
|
end
|
18
18
|
|
19
19
|
def initialize
|
@@ -36,7 +36,7 @@ module CloudApp
|
|
36
36
|
data = authenticate_response.template.
|
37
37
|
fill('email' => email, 'password' => password)
|
38
38
|
|
39
|
-
post(authenticate_response.href,
|
39
|
+
post(authenticate_response.href, data) do |response|
|
40
40
|
return response
|
41
41
|
end
|
42
42
|
end
|
@@ -59,7 +59,7 @@ module CloudApp
|
|
59
59
|
attributes = drop.data.merge fetch_drop_attributes(options)
|
60
60
|
data = collection.template.fill attributes
|
61
61
|
|
62
|
-
put(drop.href,
|
62
|
+
put(drop.href, data) do |collection|
|
63
63
|
if not path
|
64
64
|
return collection
|
65
65
|
else
|
@@ -73,7 +73,7 @@ module CloudApp
|
|
73
73
|
collection = drops_at :root
|
74
74
|
data = collection.template.fill(attributes)
|
75
75
|
|
76
|
-
post(collection.href,
|
76
|
+
post(collection.href, data) do |response|
|
77
77
|
return response
|
78
78
|
end
|
79
79
|
end
|
@@ -83,7 +83,7 @@ module CloudApp
|
|
83
83
|
collection = drops_at :root
|
84
84
|
data = collection.template.fill(attributes)
|
85
85
|
|
86
|
-
post(collection.href,
|
86
|
+
post(collection.href, data) do |collection|
|
87
87
|
return upload_file(path, collection)
|
88
88
|
end
|
89
89
|
end
|
@@ -120,14 +120,14 @@ module CloudApp
|
|
120
120
|
return response if response.__response__.status == 401
|
121
121
|
if not params.empty?
|
122
122
|
drops_query = response.query('drops-list')
|
123
|
-
href = drops_query.href
|
124
|
-
|
123
|
+
href = Addressable::URI.parse drops_query.href
|
124
|
+
href.query_values = drops_query.fill params
|
125
125
|
else
|
126
126
|
return response
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
-
get(href
|
130
|
+
get(href) do |response|
|
131
131
|
return response if response.__response__.status == 401
|
132
132
|
return response
|
133
133
|
end
|
data/lib/cloudapp.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.beta.
|
4
|
+
version: 2.0.0.beta.2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: leadlight
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- - '
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- - '
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0
|
29
|
+
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: typhoeus
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,9 +134,6 @@ files:
|
|
134
134
|
- lib/cloudapp/drop_collection.rb
|
135
135
|
- lib/cloudapp/service.rb
|
136
136
|
- lib/cloudapp/token.rb
|
137
|
-
- man/cloudapp.1
|
138
|
-
- man/cloudapp.1.html
|
139
|
-
- man/cloudapp.1.ronn
|
140
137
|
- spec/cassettes/create_bookmark.yml
|
141
138
|
- spec/cassettes/create_bookmark_with_name.yml
|
142
139
|
- spec/cassettes/create_bookmark_with_privacy.yml
|
data/man/cloudapp.1
DELETED
@@ -1,373 +0,0 @@
|
|
1
|
-
.\" generated with Ronn/v0.7.3
|
2
|
-
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
-
.
|
4
|
-
.TH "CLOUDAPP" "1" "May 2012" "" ""
|
5
|
-
.
|
6
|
-
.SH "NAME"
|
7
|
-
\fBcloudapp\fR \- All the pleasures of CloudApp now at your terminal
|
8
|
-
.
|
9
|
-
.SH "SYNOPSIS"
|
10
|
-
\fBcloudapp\fR [\fIglobal\fR] \fBlist\fR [\fIoptions\fR]
|
11
|
-
.
|
12
|
-
.br
|
13
|
-
\fBcloudapp\fR [\fIglobal\fR] \fBdetails\fR \fIhref\fR [\fIhref\fR\.\.\.]
|
14
|
-
.
|
15
|
-
.br
|
16
|
-
\fBcloudapp\fR [\fIglobal\fR] \fBbookmark\fR [\fIoptions\fR] \fIurl\fR [\fIurl\fR\.\.\.]
|
17
|
-
.
|
18
|
-
.br
|
19
|
-
\fBcloudapp\fR [\fIglobal\fR] \fBupload\fR [\fIoptions\fR] \fIfile\fR [\fIfile\fR\.\.\.]
|
20
|
-
.
|
21
|
-
.br
|
22
|
-
\fBcloudapp\fR [\fIglobal\fR] \fBupdate\fR [\fIoptions\fR] \fIhref\fR [\fIhref\fR\.\.\.]
|
23
|
-
.
|
24
|
-
.br
|
25
|
-
\fBcloudapp\fR [\fIglobal\fR] \fBtrash\fR \fIhref\fR [\fIhref\fR\.\.\.]
|
26
|
-
.
|
27
|
-
.br
|
28
|
-
\fBcloudapp\fR [\fIglobal\fR] \fBrecover\fR \fIhref\fR [\fIhref\fR\.\.\.]
|
29
|
-
.
|
30
|
-
.br
|
31
|
-
\fBcloudapp\fR [\fIglobal\fR] \fBdelete\fR \fIhref\fR [\fIhref\fR\.\.\.]
|
32
|
-
.
|
33
|
-
.SH "DESCRIPTION"
|
34
|
-
\fBcloudapp\fR is a simple, Unix\-friendly tool for CloudApp meant to augment the Mac and Web apps\. Sometimes it\'s more convenient to share without leaving the terminal and other times it\'s the only tool available\.
|
35
|
-
.
|
36
|
-
.SH "GLOBAL OPTIONS"
|
37
|
-
.
|
38
|
-
.TP
|
39
|
-
\fB\-f\fR \fIpretty,csv\fR, \fB\-\-format\fR=\fIpretty,csv\fR
|
40
|
-
Output using either \fBpretty\fR or \fBcsv\fR format\. (Default: \fBpretty\fR when output to a terminal and \fBcsv\fR when output is piped to another program\.)
|
41
|
-
.
|
42
|
-
.SH "COMMANDS"
|
43
|
-
.
|
44
|
-
.TP
|
45
|
-
\fB\-\-bookmark\fR=\fIurl\fR
|
46
|
-
Update the drop converting it into a bookmark to \fIurl\fR\.
|
47
|
-
.
|
48
|
-
.TP
|
49
|
-
\fBbookmark\fR [\fB\-\-private\fR] [\fB\-\-public\fR] \fIurl\fR [\fIurl\fR\.\.\.]
|
50
|
-
Create a new bookmark to each \fIurl\fR and print the share links\.
|
51
|
-
.
|
52
|
-
.TP
|
53
|
-
\fBdelete\fR \fIhref\fR [\fIhref\fR\.\.\.]
|
54
|
-
Delete each drop at \fIhref\fR immediately and bypass the trash\.
|
55
|
-
.
|
56
|
-
.TP
|
57
|
-
\fBdetails\fR \fIhref\fR [\fIhref\fR\.\.\.]
|
58
|
-
View the details of each drop at \fIhref\fR\.
|
59
|
-
.
|
60
|
-
.TP
|
61
|
-
\fBlist\fR, \fBls\fR [\fB\-\-count\fR=\fIcount\fR] [\fB\-\-filter\fR=\fIactive,trash,all\fR]
|
62
|
-
List the newest \fIcount\fR of \fIfilter\fR drops\. The default is to list \fB20 active\fR drops\.
|
63
|
-
.
|
64
|
-
.TP
|
65
|
-
\fBrecover\fR \fIhref\fR [\fIhref\fR\.\.\.]
|
66
|
-
Recover each drop at \fIhref\fR from the trash\.
|
67
|
-
.
|
68
|
-
.TP
|
69
|
-
\fBtrash\fR \fIhref\fR [\fIhref\fR\.\.\.]
|
70
|
-
Send each drop at \fIhref\fR to the trash\.
|
71
|
-
.
|
72
|
-
.TP
|
73
|
-
\fBupdate\fR [\fB\-\-name\fR=\fIname\fR] [\fB\-\-private\fR] [\fB\-\-public\fR] [\fB\-\-bookmark\fR=\fIurl\fR] [\fB\-\-file\fR=\fIfile\fR] \fIhref\fR [\fIhref\fR\.\.\.]
|
74
|
-
Update the name, privacy, bookmark link, or file of each drop at \fIhref\fR\.
|
75
|
-
.
|
76
|
-
.TP
|
77
|
-
\fBupload\fR [\fB\-\-private\fR] [\fB\-\-public\fR] \fIfile\fR [\fIfile\fR\.\.\.]
|
78
|
-
Upload each \fIfile\fR and print the share links\.
|
79
|
-
.
|
80
|
-
.SH "COMMAND OPTIONS"
|
81
|
-
.
|
82
|
-
.TP
|
83
|
-
\fB\-\-bookmark\fR=\fIurl\fR
|
84
|
-
Update the drop converting it into a bookmark to \fIurl\fR\.
|
85
|
-
.
|
86
|
-
.TP
|
87
|
-
\fB\-\-file\fR=\fIfile\fR
|
88
|
-
Update the drop converting it into a file and replacing its content with \fIfile\fR\.
|
89
|
-
.
|
90
|
-
.TP
|
91
|
-
\fB\-\-filter\fR=\fIactive,trash,all\fR
|
92
|
-
Show \fIfilter\fR drops\. (Default: \fBactive\fR)
|
93
|
-
.
|
94
|
-
.TP
|
95
|
-
\fB\-n\fR \fIcount\fR, \fB\-\-count\fR=\fIcount\fR
|
96
|
-
Display \fIcount\fR drops\. (Default: \fB20\fR)
|
97
|
-
.
|
98
|
-
.TP
|
99
|
-
\fB\-\-name\fR=\fIname\fR
|
100
|
-
Update the drop\'s name to \fIname\fR\.
|
101
|
-
.
|
102
|
-
.TP
|
103
|
-
\fB\-\-private\fR
|
104
|
-
Use a private (long) link for the drop\.
|
105
|
-
.
|
106
|
-
.TP
|
107
|
-
\fB\-\-public\fR
|
108
|
-
Use a public (short) link for the drop\.
|
109
|
-
.
|
110
|
-
.SH "REQUIREMENTS"
|
111
|
-
\fBcloudapp\fR requires Ruby 1\.9\.2 or greater\.
|
112
|
-
.
|
113
|
-
.SH "EXAMPLES"
|
114
|
-
List the newest drops:
|
115
|
-
.
|
116
|
-
.IP "" 4
|
117
|
-
.
|
118
|
-
.nf
|
119
|
-
|
120
|
-
$ cloudapp list
|
121
|
-
Name Views Href
|
122
|
-
favicon\.ico 1 http://api\.getcloudapp\.com/\.\.\.
|
123
|
-
The Hitchhiker\'s Guide 0 http://api\.getcloudapp\.com/\.\.\.
|
124
|
-
CloudApp 1\.5 Released 5 http://api\.getcloudapp\.com/\.\.\.
|
125
|
-
Cover\.jpeg 23 http://api\.getcloudapp\.com/\.\.\.
|
126
|
-
Chapter 1\.md 8 http://api\.getcloudapp\.com/\.\.\.
|
127
|
-
CloudApp 3 http://api\.getcloudapp\.com/\.\.\.
|
128
|
-
\.\.\.
|
129
|
-
.
|
130
|
-
.fi
|
131
|
-
.
|
132
|
-
.IP "" 0
|
133
|
-
.
|
134
|
-
.P
|
135
|
-
List the 5 newest drops:
|
136
|
-
.
|
137
|
-
.IP "" 4
|
138
|
-
.
|
139
|
-
.nf
|
140
|
-
|
141
|
-
$ cloudapp list \-\-count=5
|
142
|
-
Name Views Href
|
143
|
-
favicon\.ico 1 http://api\.getcloudapp\.com/\.\.\.
|
144
|
-
The Hitchhiker\'s Guide 0 http://api\.getcloudapp\.com/\.\.\.
|
145
|
-
CloudApp 1\.5 Released 5 http://api\.getcloudapp\.com/\.\.\.
|
146
|
-
Cover\.jpeg 23 http://api\.getcloudapp\.com/\.\.\.
|
147
|
-
Chapter 1\.md 8 http://api\.getcloudapp\.com/\.\.\.
|
148
|
-
.
|
149
|
-
.fi
|
150
|
-
.
|
151
|
-
.IP "" 0
|
152
|
-
.
|
153
|
-
.P
|
154
|
-
List newest, deleted drops:
|
155
|
-
.
|
156
|
-
.IP "" 4
|
157
|
-
.
|
158
|
-
.nf
|
159
|
-
|
160
|
-
$ cloudapp list \-\-filter=trash
|
161
|
-
Name Views Href
|
162
|
-
Delete Me 0 http://api\.getcloudapp\.com/\.\.\.
|
163
|
-
\.\.\.
|
164
|
-
.
|
165
|
-
.fi
|
166
|
-
.
|
167
|
-
.IP "" 0
|
168
|
-
.
|
169
|
-
.P
|
170
|
-
List newest 5 drops in CSV format:
|
171
|
-
.
|
172
|
-
.IP "" 4
|
173
|
-
.
|
174
|
-
.nf
|
175
|
-
|
176
|
-
$ cloudapp \-\-format=csv list \-\-count=5
|
177
|
-
Name,Href,Share,Views
|
178
|
-
favicon\.ico,http://api\.getcloudapp\.com/\.\.\.,http://cl\.ly/0P28\.\.\.,3
|
179
|
-
The Hitchhiker\'s Guide to the Galaxy,http://api\.getcloudapp\.com/\.\.\.,http://cl\.ly/3I28\.\.\.,4
|
180
|
-
2011\-05\-03\-cloudapp\-1\.5\-released\.md,http://api\.getcloudapp\.com/\.\.\.,http://cl\.ly/0s1o\.\.\.,4
|
181
|
-
Cover\.jpeg,http://api\.getcloudapp\.com/\.\.\.,http://cl\.ly/1x20\.\.\.,1
|
182
|
-
Chapter 1\.md,http://api\.getcloudapp\.com/\.\.\.,http://cl\.ly/3U3d\.\.\.,7
|
183
|
-
.
|
184
|
-
.fi
|
185
|
-
.
|
186
|
-
.IP "" 0
|
187
|
-
.
|
188
|
-
.P
|
189
|
-
View the details of a drop by its \fBhref\fR:
|
190
|
-
.
|
191
|
-
.IP "" 4
|
192
|
-
.
|
193
|
-
.nf
|
194
|
-
|
195
|
-
$ cloudapp details http://api\.getcloudapp\.com/drops/12345
|
196
|
-
Details
|
197
|
-
Name: Cover\.jpeg
|
198
|
-
Views: 23
|
199
|
-
Privacy: Private
|
200
|
-
|
201
|
-
Links
|
202
|
-
Share: http://cl\.ly/1x200A0m3v101d1n2O1u
|
203
|
-
Embed: http://cl\.ly/1x200A0m3v101d1n2O1u/Cover\.jpeg
|
204
|
-
Download: http://cl\.ly/1x200A0m3v101d1n2O1u/download/Cover\.jpeg
|
205
|
-
Href: http://api\.getcloudapp\.com/drops/13949858
|
206
|
-
.
|
207
|
-
.fi
|
208
|
-
.
|
209
|
-
.IP "" 0
|
210
|
-
.
|
211
|
-
.P
|
212
|
-
View the details of a drop in CSV format:
|
213
|
-
.
|
214
|
-
.IP "" 4
|
215
|
-
.
|
216
|
-
.nf
|
217
|
-
|
218
|
-
$ cloudapp \-\-format=csv details http://api\.getcloudapp\.com/drops/12345
|
219
|
-
Name,Created,Privacy,Share,Embed,Download
|
220
|
-
Cover\.jpg,2012\-01\-12T20:44:58Z,private,http://cl\.ly/1x20\.\.\.,http://cl\.ly/1x20\.\.\.,http://cl\.ly/1x20\.\.\.
|
221
|
-
.
|
222
|
-
.fi
|
223
|
-
.
|
224
|
-
.IP "" 0
|
225
|
-
.
|
226
|
-
.P
|
227
|
-
Share a new bookmark to \fBhttp://douglasadams\.com\fR:
|
228
|
-
.
|
229
|
-
.IP "" 4
|
230
|
-
.
|
231
|
-
.nf
|
232
|
-
|
233
|
-
$ cloudapp bookmark http://douglasadams\.com
|
234
|
-
Bookmarking http://douglasadams\.com\.\.\. http://cl\.ly/1y0j403g3D0c0X1G0R3m
|
235
|
-
.
|
236
|
-
.fi
|
237
|
-
.
|
238
|
-
.IP "" 0
|
239
|
-
.
|
240
|
-
.P
|
241
|
-
Share the file \fBscreenshot\.png\fR:
|
242
|
-
.
|
243
|
-
.IP "" 4
|
244
|
-
.
|
245
|
-
.nf
|
246
|
-
|
247
|
-
$ cloudapp upload screenshot\.png
|
248
|
-
Uploading screenshot\.png\.\.\. http://cl\.ly/040u2o3X1w0z1z3n2T04
|
249
|
-
.
|
250
|
-
.fi
|
251
|
-
.
|
252
|
-
.IP "" 0
|
253
|
-
.
|
254
|
-
.P
|
255
|
-
Share a new bookmark or file and copy the URL to the clipboard (OS X):
|
256
|
-
.
|
257
|
-
.IP "" 4
|
258
|
-
.
|
259
|
-
.nf
|
260
|
-
|
261
|
-
$ cloudapp bookmark http://douglasadams\.com | pbcopy
|
262
|
-
$ cloudapp upload screenshot\.png | pbcopy
|
263
|
-
.
|
264
|
-
.fi
|
265
|
-
.
|
266
|
-
.IP "" 0
|
267
|
-
.
|
268
|
-
.P
|
269
|
-
Share a new bookmark and output only the URL:
|
270
|
-
.
|
271
|
-
.IP "" 4
|
272
|
-
.
|
273
|
-
.nf
|
274
|
-
|
275
|
-
$ cloudapp \-\-format=csv bookmark http://douglasadams\.com
|
276
|
-
http://cl\.ly/1y0j403g3D0c0X1G0R3m
|
277
|
-
.
|
278
|
-
.fi
|
279
|
-
.
|
280
|
-
.IP "" 0
|
281
|
-
.
|
282
|
-
.P
|
283
|
-
Update a drop with a new name and privacy:
|
284
|
-
.
|
285
|
-
.IP "" 4
|
286
|
-
.
|
287
|
-
.nf
|
288
|
-
|
289
|
-
$ cloudapp update \-\-public \e
|
290
|
-
\-\-name=\'The Late, Great Douglas Adams\' \e
|
291
|
-
http://api\.getcloudapp\.com/drops/12345
|
292
|
-
Updating\.\.\. http://cl\.ly/abc123
|
293
|
-
.
|
294
|
-
.fi
|
295
|
-
.
|
296
|
-
.IP "" 0
|
297
|
-
.
|
298
|
-
.P
|
299
|
-
Update a drop with a new bookmark URL:
|
300
|
-
.
|
301
|
-
.IP "" 4
|
302
|
-
.
|
303
|
-
.nf
|
304
|
-
|
305
|
-
$ cloudapp update \-\-bookmark=http://douglasadams\.com \e
|
306
|
-
http://api\.getcloudapp\.com/drops/12345
|
307
|
-
Updating\.\.\. http://cl\.ly/1y0j403g3D0c0X1G0R3m
|
308
|
-
.
|
309
|
-
.fi
|
310
|
-
.
|
311
|
-
.IP "" 0
|
312
|
-
.
|
313
|
-
.P
|
314
|
-
Update a drop with a new file:
|
315
|
-
.
|
316
|
-
.IP "" 4
|
317
|
-
.
|
318
|
-
.nf
|
319
|
-
|
320
|
-
$ cloudapp update \-\-file=screenshot\.png \e
|
321
|
-
http://api\.getcloudapp\.com/drops/12345
|
322
|
-
Updating\.\.\. http://cl\.ly/1y0j403g3D0c0X1G0R3m
|
323
|
-
.
|
324
|
-
.fi
|
325
|
-
.
|
326
|
-
.IP "" 0
|
327
|
-
.
|
328
|
-
.P
|
329
|
-
Trash a drop:
|
330
|
-
.
|
331
|
-
.IP "" 4
|
332
|
-
.
|
333
|
-
.nf
|
334
|
-
|
335
|
-
$ cloudapp trash http://api\.getcloudapp\.com/drops/12345
|
336
|
-
Trashing http://api\.getcloudapp\.dev/drops/12345\.\.\. done
|
337
|
-
.
|
338
|
-
.fi
|
339
|
-
.
|
340
|
-
.IP "" 0
|
341
|
-
.
|
342
|
-
.P
|
343
|
-
Recovering a drop:
|
344
|
-
.
|
345
|
-
.IP "" 4
|
346
|
-
.
|
347
|
-
.nf
|
348
|
-
|
349
|
-
$ cloudapp recover http://api\.getcloudapp\.com/drops/12345
|
350
|
-
Recovering http://api\.getcloudapp\.dev/drops/12345\.\.\. http://cl\.ly/1y0j\.\.\.
|
351
|
-
.
|
352
|
-
.fi
|
353
|
-
.
|
354
|
-
.IP "" 0
|
355
|
-
.
|
356
|
-
.P
|
357
|
-
Deleting a drop:
|
358
|
-
.
|
359
|
-
.IP "" 4
|
360
|
-
.
|
361
|
-
.nf
|
362
|
-
|
363
|
-
$ cloudapp trash http://api\.getcloudapp\.com/drops/12345
|
364
|
-
Delete http://api\.getcloudapp\.dev/drops/12345 forever? (y/n)
|
365
|
-
yes
|
366
|
-
Deleting http://api\.getcloudapp\.dev/drops/12345\.\.\. done
|
367
|
-
.
|
368
|
-
.fi
|
369
|
-
.
|
370
|
-
.IP "" 0
|
371
|
-
.
|
372
|
-
.SH "LICENSE"
|
373
|
-
\fBcloudapp\fR is distributed under the MIT license \fIhttps://github\.com/cloudapp/cloudapp/blob/master/MIT\-LICENSE\fR\.
|
data/man/cloudapp.1.html
DELETED
@@ -1,289 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
-
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
-
<title>cloudapp(1) - All the pleasures of CloudApp now at your terminal</title>
|
7
|
-
<style type='text/css' media='all'>
|
8
|
-
/* style: man */
|
9
|
-
body#manpage {margin:0}
|
10
|
-
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
-
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
-
.mp h2 {margin:10px 0 0 0}
|
13
|
-
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
-
.mp h3 {margin:0 0 0 4ex}
|
15
|
-
.mp dt {margin:0;clear:left}
|
16
|
-
.mp dt.flush {float:left;width:8ex}
|
17
|
-
.mp dd {margin:0 0 0 9ex}
|
18
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
-
.mp pre {margin-bottom:20px}
|
20
|
-
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
-
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
-
.mp img {display:block;margin:auto}
|
23
|
-
.mp h1.man-title {display:none}
|
24
|
-
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
-
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
-
.mp h1 {font-size:20px;line-height:2}
|
27
|
-
.mp {text-align:justify;background:#fff}
|
28
|
-
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
-
.mp u {text-decoration:underline}
|
31
|
-
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
-
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
-
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
-
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
-
.mp pre {padding:0 4ex}
|
36
|
-
.mp pre code {font-weight:normal;color:#434241}
|
37
|
-
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
-
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
-
ol.man-decor {width:100%}
|
40
|
-
ol.man-decor li.tl {text-align:left}
|
41
|
-
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
-
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
-
</style>
|
44
|
-
<style type='text/css' media='all'>
|
45
|
-
/* style: toc */
|
46
|
-
.man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
|
47
|
-
.man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
|
48
|
-
.man-navigation a:hover {color:#111;text-decoration:underline}
|
49
|
-
</style>
|
50
|
-
</head>
|
51
|
-
<!--
|
52
|
-
The following styles are deprecated and will be removed at some point:
|
53
|
-
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
54
|
-
|
55
|
-
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
56
|
-
.man-navigation should be used instead.
|
57
|
-
-->
|
58
|
-
<body id='manpage'>
|
59
|
-
<div class='mp' id='man'>
|
60
|
-
|
61
|
-
<div class='man-navigation' style='display:none'>
|
62
|
-
<a href="#NAME">NAME</a>
|
63
|
-
<a href="#SYNOPSIS">SYNOPSIS</a>
|
64
|
-
<a href="#DESCRIPTION">DESCRIPTION</a>
|
65
|
-
<a href="#GLOBAL-OPTIONS">GLOBAL OPTIONS</a>
|
66
|
-
<a href="#COMMANDS">COMMANDS</a>
|
67
|
-
<a href="#COMMAND-OPTIONS">COMMAND OPTIONS</a>
|
68
|
-
<a href="#REQUIREMENTS">REQUIREMENTS</a>
|
69
|
-
<a href="#EXAMPLES">EXAMPLES</a>
|
70
|
-
<a href="#LICENSE">LICENSE</a>
|
71
|
-
</div>
|
72
|
-
|
73
|
-
<ol class='man-decor man-head man head'>
|
74
|
-
<li class='tl'>cloudapp(1)</li>
|
75
|
-
<li class='tc'></li>
|
76
|
-
<li class='tr'>cloudapp(1)</li>
|
77
|
-
</ol>
|
78
|
-
|
79
|
-
<h2 id="NAME">NAME</h2>
|
80
|
-
<p class="man-name">
|
81
|
-
<code>cloudapp</code> - <span class="man-whatis">All the pleasures of CloudApp now at your terminal</span>
|
82
|
-
</p>
|
83
|
-
|
84
|
-
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
85
|
-
|
86
|
-
<p><code>cloudapp</code> [<var>global</var>] <code>list</code> [<var>options</var>]<br />
|
87
|
-
<code>cloudapp</code> [<var>global</var>] <code>details</code> <var>href</var> [<var>href</var>...]<br />
|
88
|
-
<code>cloudapp</code> [<var>global</var>] <code>bookmark</code> [<var>options</var>] <var>url</var> [<var>url</var>...]<br />
|
89
|
-
<code>cloudapp</code> [<var>global</var>] <code>upload</code> [<var>options</var>] <var>file</var> [<var>file</var>...]<br />
|
90
|
-
<code>cloudapp</code> [<var>global</var>] <code>update</code> [<var>options</var>] <var>href</var> [<var>href</var>...]<br />
|
91
|
-
<code>cloudapp</code> [<var>global</var>] <code>trash</code> <var>href</var> [<var>href</var>...]<br />
|
92
|
-
<code>cloudapp</code> [<var>global</var>] <code>recover</code> <var>href</var> [<var>href</var>...]<br />
|
93
|
-
<code>cloudapp</code> [<var>global</var>] <code>delete</code> <var>href</var> [<var>href</var>...]</p>
|
94
|
-
|
95
|
-
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
96
|
-
|
97
|
-
<p><code>cloudapp</code> is a simple, Unix-friendly tool for CloudApp meant to augment the Mac
|
98
|
-
and Web apps. Sometimes it's more convenient to share without leaving the
|
99
|
-
terminal and other times it's the only tool available.</p>
|
100
|
-
|
101
|
-
<h2 id="GLOBAL-OPTIONS">GLOBAL OPTIONS</h2>
|
102
|
-
|
103
|
-
<dl>
|
104
|
-
<dt><code>-f</code> <var>pretty,csv</var>, <code>--format</code>=<var>pretty,csv</var></dt><dd>Output using either <strong>pretty</strong> or <strong>csv</strong> format. (Default: <strong>pretty</strong> when
|
105
|
-
output to a terminal and <strong>csv</strong> when output is piped to another program.)</dd>
|
106
|
-
</dl>
|
107
|
-
|
108
|
-
|
109
|
-
<h2 id="COMMANDS">COMMANDS</h2>
|
110
|
-
|
111
|
-
<dl>
|
112
|
-
<dt><code>--bookmark</code>=<var>url</var></dt><dd><p>Update the drop converting it into a bookmark to <var>url</var>.</p></dd>
|
113
|
-
<dt><code>bookmark</code> [<code>--private</code>] [<code>--public</code>] <var>url</var> [<var>url</var>...]</dt><dd><p>Create a new bookmark to each <var>url</var> and print the share links.</p></dd>
|
114
|
-
<dt><code>delete</code> <var>href</var> [<var>href</var>...]</dt><dd><p>Delete each drop at <var>href</var> immediately and bypass the trash.</p></dd>
|
115
|
-
<dt><code>details</code> <var>href</var> [<var>href</var>...]</dt><dd><p>View the details of each drop at <var>href</var>.</p></dd>
|
116
|
-
<dt><code>list</code>, <code>ls</code> [<code>--count</code>=<var>count</var>] [<code>--filter</code>=<var>active,trash,all</var>]</dt><dd><p>List the newest <var>count</var> of <var>filter</var> drops. The default is to list <strong>20
|
117
|
-
active</strong> drops.</p></dd>
|
118
|
-
<dt><code>recover</code> <var>href</var> [<var>href</var>...]</dt><dd><p>Recover each drop at <var>href</var> from the trash.</p></dd>
|
119
|
-
<dt><code>trash</code> <var>href</var> [<var>href</var>...]</dt><dd><p>Send each drop at <var>href</var> to the trash.</p></dd>
|
120
|
-
<dt><code>update</code> [<code>--name</code>=<var>name</var>] [<code>--private</code>] [<code>--public</code>] [<code>--bookmark</code>=<var>url</var>] [<code>--file</code>=<var>file</var>] <var>href</var> [<var>href</var>...]</dt><dd><p>Update the name, privacy, bookmark link, or file of each drop at <var>href</var>.</p></dd>
|
121
|
-
<dt><code>upload</code> [<code>--private</code>] [<code>--public</code>] <var>file</var> [<var>file</var>...]</dt><dd><p>Upload each <var>file</var> and print the share links.</p></dd>
|
122
|
-
</dl>
|
123
|
-
|
124
|
-
|
125
|
-
<h2 id="COMMAND-OPTIONS">COMMAND OPTIONS</h2>
|
126
|
-
|
127
|
-
<dl>
|
128
|
-
<dt><code>--bookmark</code>=<var>url</var></dt><dd><p>Update the drop converting it into a bookmark to <var>url</var>.</p></dd>
|
129
|
-
<dt><code>--file</code>=<var>file</var></dt><dd><p>Update the drop converting it into a file and replacing its content with
|
130
|
-
<var>file</var>.</p></dd>
|
131
|
-
<dt><code>--filter</code>=<var>active,trash,all</var></dt><dd><p>Show <var>filter</var> drops. (Default: <strong>active</strong>)</p></dd>
|
132
|
-
<dt><code>-n</code> <var>count</var>, <code>--count</code>=<var>count</var></dt><dd><p>Display <var>count</var> drops. (Default: <strong>20</strong>)</p></dd>
|
133
|
-
<dt><code>--name</code>=<var>name</var></dt><dd><p>Update the drop's name to <var>name</var>.</p></dd>
|
134
|
-
<dt><code>--private</code></dt><dd><p>Use a private (long) link for the drop.</p></dd>
|
135
|
-
<dt><code>--public</code></dt><dd><p>Use a public (short) link for the drop.</p></dd>
|
136
|
-
</dl>
|
137
|
-
|
138
|
-
|
139
|
-
<h2 id="REQUIREMENTS">REQUIREMENTS</h2>
|
140
|
-
|
141
|
-
<p><code>cloudapp</code> requires Ruby 1.9.2 or greater.</p>
|
142
|
-
|
143
|
-
<h2 id="EXAMPLES">EXAMPLES</h2>
|
144
|
-
|
145
|
-
<p>List the newest drops:</p>
|
146
|
-
|
147
|
-
<pre><code>$ cloudapp list
|
148
|
-
Name Views Href
|
149
|
-
favicon.ico 1 http://api.getcloudapp.com/...
|
150
|
-
The Hitchhiker's Guide 0 http://api.getcloudapp.com/...
|
151
|
-
CloudApp 1.5 Released 5 http://api.getcloudapp.com/...
|
152
|
-
Cover.jpeg 23 http://api.getcloudapp.com/...
|
153
|
-
Chapter 1.md 8 http://api.getcloudapp.com/...
|
154
|
-
CloudApp 3 http://api.getcloudapp.com/...
|
155
|
-
...
|
156
|
-
</code></pre>
|
157
|
-
|
158
|
-
<p>List the 5 newest drops:</p>
|
159
|
-
|
160
|
-
<pre><code>$ cloudapp list --count=5
|
161
|
-
Name Views Href
|
162
|
-
favicon.ico 1 http://api.getcloudapp.com/...
|
163
|
-
The Hitchhiker's Guide 0 http://api.getcloudapp.com/...
|
164
|
-
CloudApp 1.5 Released 5 http://api.getcloudapp.com/...
|
165
|
-
Cover.jpeg 23 http://api.getcloudapp.com/...
|
166
|
-
Chapter 1.md 8 http://api.getcloudapp.com/...
|
167
|
-
</code></pre>
|
168
|
-
|
169
|
-
<p>List newest, deleted drops:</p>
|
170
|
-
|
171
|
-
<pre><code>$ cloudapp list --filter=trash
|
172
|
-
Name Views Href
|
173
|
-
Delete Me 0 http://api.getcloudapp.com/...
|
174
|
-
...
|
175
|
-
</code></pre>
|
176
|
-
|
177
|
-
<p>List newest 5 drops in CSV format:</p>
|
178
|
-
|
179
|
-
<pre><code>$ cloudapp --format=csv list --count=5
|
180
|
-
Name,Href,Share,Views
|
181
|
-
favicon.ico,http://api.getcloudapp.com/...,http://cl.ly/0P28...,3
|
182
|
-
The Hitchhiker's Guide to the Galaxy,http://api.getcloudapp.com/...,http://cl.ly/3I28...,4
|
183
|
-
2011-05-03-cloudapp-1.5-released.md,http://api.getcloudapp.com/...,http://cl.ly/0s1o...,4
|
184
|
-
Cover.jpeg,http://api.getcloudapp.com/...,http://cl.ly/1x20...,1
|
185
|
-
Chapter 1.md,http://api.getcloudapp.com/...,http://cl.ly/3U3d...,7
|
186
|
-
</code></pre>
|
187
|
-
|
188
|
-
<p>View the details of a drop by its <strong>href</strong>:</p>
|
189
|
-
|
190
|
-
<pre><code>$ cloudapp details http://api.getcloudapp.com/drops/12345
|
191
|
-
Details
|
192
|
-
Name: Cover.jpeg
|
193
|
-
Views: 23
|
194
|
-
Privacy: Private
|
195
|
-
|
196
|
-
Links
|
197
|
-
Share: http://cl.ly/1x200A0m3v101d1n2O1u
|
198
|
-
Embed: http://cl.ly/1x200A0m3v101d1n2O1u/Cover.jpeg
|
199
|
-
Download: http://cl.ly/1x200A0m3v101d1n2O1u/download/Cover.jpeg
|
200
|
-
Href: http://api.getcloudapp.com/drops/13949858
|
201
|
-
</code></pre>
|
202
|
-
|
203
|
-
<p>View the details of a drop in CSV format:</p>
|
204
|
-
|
205
|
-
<pre><code>$ cloudapp --format=csv details http://api.getcloudapp.com/drops/12345
|
206
|
-
Name,Created,Privacy,Share,Embed,Download
|
207
|
-
Cover.jpg,2012-01-12T20:44:58Z,private,http://cl.ly/1x20...,http://cl.ly/1x20...,http://cl.ly/1x20...
|
208
|
-
</code></pre>
|
209
|
-
|
210
|
-
<p>Share a new bookmark to <strong>http://douglasadams.com</strong>:</p>
|
211
|
-
|
212
|
-
<pre><code>$ cloudapp bookmark http://douglasadams.com
|
213
|
-
Bookmarking http://douglasadams.com... http://cl.ly/1y0j403g3D0c0X1G0R3m
|
214
|
-
</code></pre>
|
215
|
-
|
216
|
-
<p>Share the file <strong>screenshot.png</strong>:</p>
|
217
|
-
|
218
|
-
<pre><code>$ cloudapp upload screenshot.png
|
219
|
-
Uploading screenshot.png... http://cl.ly/040u2o3X1w0z1z3n2T04
|
220
|
-
</code></pre>
|
221
|
-
|
222
|
-
<p>Share a new bookmark or file and copy the URL to the clipboard (OS X):</p>
|
223
|
-
|
224
|
-
<pre><code>$ cloudapp bookmark http://douglasadams.com | pbcopy
|
225
|
-
$ cloudapp upload screenshot.png | pbcopy
|
226
|
-
</code></pre>
|
227
|
-
|
228
|
-
<p>Share a new bookmark and output only the URL:</p>
|
229
|
-
|
230
|
-
<pre><code>$ cloudapp --format=csv bookmark http://douglasadams.com
|
231
|
-
http://cl.ly/1y0j403g3D0c0X1G0R3m
|
232
|
-
</code></pre>
|
233
|
-
|
234
|
-
<p>Update a drop with a new name and privacy:</p>
|
235
|
-
|
236
|
-
<pre><code>$ cloudapp update --public \
|
237
|
-
--name='The Late, Great Douglas Adams' \
|
238
|
-
http://api.getcloudapp.com/drops/12345
|
239
|
-
Updating... http://cl.ly/abc123
|
240
|
-
</code></pre>
|
241
|
-
|
242
|
-
<p>Update a drop with a new bookmark URL:</p>
|
243
|
-
|
244
|
-
<pre><code>$ cloudapp update --bookmark=http://douglasadams.com \
|
245
|
-
http://api.getcloudapp.com/drops/12345
|
246
|
-
Updating... http://cl.ly/1y0j403g3D0c0X1G0R3m
|
247
|
-
</code></pre>
|
248
|
-
|
249
|
-
<p>Update a drop with a new file:</p>
|
250
|
-
|
251
|
-
<pre><code>$ cloudapp update --file=screenshot.png \
|
252
|
-
http://api.getcloudapp.com/drops/12345
|
253
|
-
Updating... http://cl.ly/1y0j403g3D0c0X1G0R3m
|
254
|
-
</code></pre>
|
255
|
-
|
256
|
-
<p>Trash a drop:</p>
|
257
|
-
|
258
|
-
<pre><code>$ cloudapp trash http://api.getcloudapp.com/drops/12345
|
259
|
-
Trashing http://api.getcloudapp.dev/drops/12345... done
|
260
|
-
</code></pre>
|
261
|
-
|
262
|
-
<p>Recovering a drop:</p>
|
263
|
-
|
264
|
-
<pre><code>$ cloudapp recover http://api.getcloudapp.com/drops/12345
|
265
|
-
Recovering http://api.getcloudapp.dev/drops/12345... http://cl.ly/1y0j...
|
266
|
-
</code></pre>
|
267
|
-
|
268
|
-
<p>Deleting a drop:</p>
|
269
|
-
|
270
|
-
<pre><code>$ cloudapp trash http://api.getcloudapp.com/drops/12345
|
271
|
-
Delete http://api.getcloudapp.dev/drops/12345 forever? (y/n)
|
272
|
-
yes
|
273
|
-
Deleting http://api.getcloudapp.dev/drops/12345... done
|
274
|
-
</code></pre>
|
275
|
-
|
276
|
-
<h2 id="LICENSE">LICENSE</h2>
|
277
|
-
|
278
|
-
<p><code>cloudapp</code> is distributed under the <a href="https://github.com/cloudapp/cloudapp/blob/master/MIT-LICENSE">MIT license</a>.</p>
|
279
|
-
|
280
|
-
|
281
|
-
<ol class='man-decor man-foot man foot'>
|
282
|
-
<li class='tl'></li>
|
283
|
-
<li class='tc'>May 2012</li>
|
284
|
-
<li class='tr'>cloudapp(1)</li>
|
285
|
-
</ol>
|
286
|
-
|
287
|
-
</div>
|
288
|
-
</body>
|
289
|
-
</html>
|
data/man/cloudapp.1.ronn
DELETED
@@ -1,206 +0,0 @@
|
|
1
|
-
cloudapp(1) -- All the pleasures of CloudApp now at your terminal
|
2
|
-
=================================================================
|
3
|
-
|
4
|
-
## SYNOPSIS
|
5
|
-
|
6
|
-
`cloudapp` [<global>] `list` [<options>]<br>
|
7
|
-
`cloudapp` [<global>] `details` <href> [<href>...]<br>
|
8
|
-
`cloudapp` [<global>] `bookmark` [<options>] <url> [<url>...]<br>
|
9
|
-
`cloudapp` [<global>] `upload` [<options>] <file> [<file>...]<br>
|
10
|
-
`cloudapp` [<global>] `update` [<options>] <href> [<href>...]<br>
|
11
|
-
`cloudapp` [<global>] `trash` <href> [<href>...]<br>
|
12
|
-
`cloudapp` [<global>] `recover` <href> [<href>...]<br>
|
13
|
-
`cloudapp` [<global>] `delete` <href> [<href>...]
|
14
|
-
|
15
|
-
## DESCRIPTION
|
16
|
-
|
17
|
-
`cloudapp` is a simple, Unix-friendly tool for CloudApp meant to augment the Mac
|
18
|
-
and Web apps. Sometimes it's more convenient to share without leaving the
|
19
|
-
terminal and other times it's the only tool available.
|
20
|
-
|
21
|
-
## GLOBAL OPTIONS
|
22
|
-
|
23
|
-
* `-f` <pretty,csv>, `--format`=<pretty,csv>:
|
24
|
-
Output using either **pretty** or **csv** format. (Default: **pretty** when
|
25
|
-
output to a terminal and **csv** when output is piped to another program.)
|
26
|
-
|
27
|
-
## COMMANDS
|
28
|
-
|
29
|
-
* `--bookmark`=<url>:
|
30
|
-
Update the drop converting it into a bookmark to <url>.
|
31
|
-
|
32
|
-
* `bookmark` [`--private`] [`--public`] <url> [<url>...]:
|
33
|
-
Create a new bookmark to each <url> and print the share links.
|
34
|
-
|
35
|
-
* `delete` <href> [<href>...]:
|
36
|
-
Delete each drop at <href> immediately and bypass the trash.
|
37
|
-
|
38
|
-
* `details` <href> [<href>...]:
|
39
|
-
View the details of each drop at <href>.
|
40
|
-
|
41
|
-
* `list`, `ls` [`--count`=<count>] [`--filter`=<active,trash,all>]:
|
42
|
-
List the newest <count> of <filter> drops. The default is to list **20
|
43
|
-
active** drops.
|
44
|
-
|
45
|
-
* `recover` <href> [<href>...]:
|
46
|
-
Recover each drop at <href> from the trash.
|
47
|
-
|
48
|
-
* `trash` <href> [<href>...]:
|
49
|
-
Send each drop at <href> to the trash.
|
50
|
-
|
51
|
-
* `update` [`--name`=<name>] [`--private`] [`--public`] [`--bookmark`=<url>] [`--file`=<file>] <href> [<href>...]:
|
52
|
-
Update the name, privacy, bookmark link, or file of each drop at <href>.
|
53
|
-
|
54
|
-
* `upload` [`--private`] [`--public`] <file> [<file>...]:
|
55
|
-
Upload each <file> and print the share links.
|
56
|
-
|
57
|
-
## COMMAND OPTIONS
|
58
|
-
|
59
|
-
* `--bookmark`=<url>:
|
60
|
-
Update the drop converting it into a bookmark to <url>.
|
61
|
-
|
62
|
-
* `--file`=<file>:
|
63
|
-
Update the drop converting it into a file and replacing its content with
|
64
|
-
<file>.
|
65
|
-
|
66
|
-
* `--filter`=<active,trash,all>:
|
67
|
-
Show <filter> drops. (Default: **active**)
|
68
|
-
|
69
|
-
* `-n` <count>, `--count`=<count>:
|
70
|
-
Display <count> drops. (Default: **20**)
|
71
|
-
|
72
|
-
* `--name`=<name>:
|
73
|
-
Update the drop's name to <name>.
|
74
|
-
|
75
|
-
* `--private`:
|
76
|
-
Use a private (long) link for the drop.
|
77
|
-
|
78
|
-
* `--public`:
|
79
|
-
Use a public (short) link for the drop.
|
80
|
-
|
81
|
-
## REQUIREMENTS
|
82
|
-
|
83
|
-
`cloudapp` requires Ruby 1.9.2 or greater.
|
84
|
-
|
85
|
-
## EXAMPLES
|
86
|
-
|
87
|
-
List the newest drops:
|
88
|
-
|
89
|
-
$ cloudapp list
|
90
|
-
Name Views Href
|
91
|
-
favicon.ico 1 http://api.getcloudapp.com/...
|
92
|
-
The Hitchhiker's Guide 0 http://api.getcloudapp.com/...
|
93
|
-
CloudApp 1.5 Released 5 http://api.getcloudapp.com/...
|
94
|
-
Cover.jpeg 23 http://api.getcloudapp.com/...
|
95
|
-
Chapter 1.md 8 http://api.getcloudapp.com/...
|
96
|
-
CloudApp 3 http://api.getcloudapp.com/...
|
97
|
-
...
|
98
|
-
|
99
|
-
List the 5 newest drops:
|
100
|
-
|
101
|
-
$ cloudapp list --count=5
|
102
|
-
Name Views Href
|
103
|
-
favicon.ico 1 http://api.getcloudapp.com/...
|
104
|
-
The Hitchhiker's Guide 0 http://api.getcloudapp.com/...
|
105
|
-
CloudApp 1.5 Released 5 http://api.getcloudapp.com/...
|
106
|
-
Cover.jpeg 23 http://api.getcloudapp.com/...
|
107
|
-
Chapter 1.md 8 http://api.getcloudapp.com/...
|
108
|
-
|
109
|
-
List newest, deleted drops:
|
110
|
-
|
111
|
-
$ cloudapp list --filter=trash
|
112
|
-
Name Views Href
|
113
|
-
Delete Me 0 http://api.getcloudapp.com/...
|
114
|
-
...
|
115
|
-
|
116
|
-
List newest 5 drops in CSV format:
|
117
|
-
|
118
|
-
$ cloudapp --format=csv list --count=5
|
119
|
-
Name,Href,Share,Views
|
120
|
-
favicon.ico,http://api.getcloudapp.com/...,http://cl.ly/0P28...,3
|
121
|
-
The Hitchhiker's Guide to the Galaxy,http://api.getcloudapp.com/...,http://cl.ly/3I28...,4
|
122
|
-
2011-05-03-cloudapp-1.5-released.md,http://api.getcloudapp.com/...,http://cl.ly/0s1o...,4
|
123
|
-
Cover.jpeg,http://api.getcloudapp.com/...,http://cl.ly/1x20...,1
|
124
|
-
Chapter 1.md,http://api.getcloudapp.com/...,http://cl.ly/3U3d...,7
|
125
|
-
|
126
|
-
View the details of a drop by its **href**:
|
127
|
-
|
128
|
-
$ cloudapp details http://api.getcloudapp.com/drops/12345
|
129
|
-
Details
|
130
|
-
Name: Cover.jpeg
|
131
|
-
Views: 23
|
132
|
-
Privacy: Private
|
133
|
-
|
134
|
-
Links
|
135
|
-
Share: http://cl.ly/1x200A0m3v101d1n2O1u
|
136
|
-
Embed: http://cl.ly/1x200A0m3v101d1n2O1u/Cover.jpeg
|
137
|
-
Download: http://cl.ly/1x200A0m3v101d1n2O1u/download/Cover.jpeg
|
138
|
-
Href: http://api.getcloudapp.com/drops/13949858
|
139
|
-
|
140
|
-
View the details of a drop in CSV format:
|
141
|
-
|
142
|
-
$ cloudapp --format=csv details http://api.getcloudapp.com/drops/12345
|
143
|
-
Name,Created,Privacy,Share,Embed,Download
|
144
|
-
Cover.jpg,2012-01-12T20:44:58Z,private,http://cl.ly/1x20...,http://cl.ly/1x20...,http://cl.ly/1x20...
|
145
|
-
|
146
|
-
Share a new bookmark to **http://douglasadams.com**:
|
147
|
-
|
148
|
-
$ cloudapp bookmark http://douglasadams.com
|
149
|
-
Bookmarking http://douglasadams.com... http://cl.ly/1y0j403g3D0c0X1G0R3m
|
150
|
-
|
151
|
-
Share the file **screenshot.png**:
|
152
|
-
|
153
|
-
$ cloudapp upload screenshot.png
|
154
|
-
Uploading screenshot.png... http://cl.ly/040u2o3X1w0z1z3n2T04
|
155
|
-
|
156
|
-
Share a new bookmark or file and copy the URL to the clipboard (OS X):
|
157
|
-
|
158
|
-
$ cloudapp bookmark http://douglasadams.com | pbcopy
|
159
|
-
$ cloudapp upload screenshot.png | pbcopy
|
160
|
-
|
161
|
-
Share a new bookmark and output only the URL:
|
162
|
-
|
163
|
-
$ cloudapp --format=csv bookmark http://douglasadams.com
|
164
|
-
http://cl.ly/1y0j403g3D0c0X1G0R3m
|
165
|
-
|
166
|
-
Update a drop with a new name and privacy:
|
167
|
-
|
168
|
-
$ cloudapp update --public \
|
169
|
-
--name='The Late, Great Douglas Adams' \
|
170
|
-
http://api.getcloudapp.com/drops/12345
|
171
|
-
Updating... http://cl.ly/abc123
|
172
|
-
|
173
|
-
Update a drop with a new bookmark URL:
|
174
|
-
|
175
|
-
$ cloudapp update --bookmark=http://douglasadams.com \
|
176
|
-
http://api.getcloudapp.com/drops/12345
|
177
|
-
Updating... http://cl.ly/1y0j403g3D0c0X1G0R3m
|
178
|
-
|
179
|
-
Update a drop with a new file:
|
180
|
-
|
181
|
-
$ cloudapp update --file=screenshot.png \
|
182
|
-
http://api.getcloudapp.com/drops/12345
|
183
|
-
Updating... http://cl.ly/1y0j403g3D0c0X1G0R3m
|
184
|
-
|
185
|
-
Trash a drop:
|
186
|
-
|
187
|
-
$ cloudapp trash http://api.getcloudapp.com/drops/12345
|
188
|
-
Trashing http://api.getcloudapp.dev/drops/12345... done
|
189
|
-
|
190
|
-
Recovering a drop:
|
191
|
-
|
192
|
-
$ cloudapp recover http://api.getcloudapp.com/drops/12345
|
193
|
-
Recovering http://api.getcloudapp.dev/drops/12345... http://cl.ly/1y0j...
|
194
|
-
|
195
|
-
Deleting a drop:
|
196
|
-
|
197
|
-
$ cloudapp trash http://api.getcloudapp.com/drops/12345
|
198
|
-
Delete http://api.getcloudapp.dev/drops/12345 forever? (y/n)
|
199
|
-
yes
|
200
|
-
Deleting http://api.getcloudapp.dev/drops/12345... done
|
201
|
-
|
202
|
-
## LICENSE
|
203
|
-
|
204
|
-
`cloudapp` is distributed under the [MIT license][mit-license].
|
205
|
-
|
206
|
-
[mit-license]: https://github.com/cloudapp/cloudapp/blob/master/MIT-LICENSE
|