trello_cli 0.0.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +9 -8
- data/lib/trello_cli/cli/card/list.rb +5 -1
- data/lib/trello_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dd54548d1a4cf7dc3c63d2102e726348a85ad46
|
|
4
|
+
data.tar.gz: 593765120c44a9e4f272b604c80489ac763f9c52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a442a359bd2c7e176ee799b1a3ac549b3331e60a5d17987b6509c87ad7018830bd166900aacccbae3d16e193bce3de4ef99903220949fabef7c6f5392d76ed2a
|
|
7
|
+
data.tar.gz: cecd01c4a00165ca9da59e4ed2151e26bd4b66e96074a6046d1fe3b7d1e2ff4a5e5def76abddd5a548c013355a8534afcfc3ff92f1c912f287559b5e8b1b2027
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -17,22 +17,23 @@ Sign-in to trello.com as the user you want to use for trello_cli.
|
|
|
17
17
|
Get API key (open this link in a web browser):
|
|
18
18
|
|
|
19
19
|
https://trello.com/1/appKey/generate
|
|
20
|
-
|
|
21
|
-
The top field contains your Developer API Key.
|
|
22
|
-
Use it to replace YOUR_API_KEY in the links below.
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
The top field contains your Developer API Key. Use it to replace **YOUR_API_KEY** in the member token links below as well as the **TRELLO_DEVELOPER_PUBLIC_KEY** environment variable.
|
|
22
|
+
|
|
23
|
+
Next, get a member token. You will need to replace **YOUR_API_KEY** in the links below with the API key obtained in the previous step.
|
|
24
|
+
|
|
25
|
+
To get a read only member token:
|
|
25
26
|
|
|
26
27
|
https://trello.com/1/connect?key=YOUR_API_KEY&name=trello-cli&response_type=token
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
To get a read / write member token:
|
|
29
30
|
|
|
30
31
|
https://trello.com/1/authorize?key=YOUR_API_KEY&name=trello-cli&expiration=never&response_type=token&scope=read,write
|
|
31
32
|
|
|
32
|
-
Set the environment variables:
|
|
33
|
+
Set the api key and member token environment variables:
|
|
33
34
|
|
|
34
|
-
TRELLO_DEVELOPER_PUBLIC_KEY=api_key
|
|
35
|
-
TRELLO_MEMBER_TOKEN=member_token
|
|
35
|
+
export TRELLO_DEVELOPER_PUBLIC_KEY=api_key
|
|
36
|
+
export TRELLO_MEMBER_TOKEN=member_token
|
|
36
37
|
|
|
37
38
|
## Usage
|
|
38
39
|
|
|
@@ -12,7 +12,7 @@ module TrelloCli
|
|
|
12
12
|
|
|
13
13
|
list_cards.each do |card|
|
|
14
14
|
puts "| Name: #{card.name} ( #{card.id} )"
|
|
15
|
-
puts "| Description: #{card.
|
|
15
|
+
puts "| Description: #{card.description}" if @options[:description]
|
|
16
16
|
puts "|------------------------"
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -34,6 +34,10 @@ module TrelloCli
|
|
|
34
34
|
opts.on("-l", "--list [LIST]", "List To Query") do |l|
|
|
35
35
|
@options[:list_id] = l
|
|
36
36
|
end
|
|
37
|
+
|
|
38
|
+
opts.on("-d", "--description", "Include description." ) do |o|
|
|
39
|
+
@options[:description] = o
|
|
40
|
+
end
|
|
37
41
|
end
|
|
38
42
|
end
|
|
39
43
|
|
data/lib/trello_cli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trello_cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brett Weaver
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|