zend 0.2.0 → 0.2.1
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 +6 -0
- data/lib/zend/cli.rb +24 -23
- data/lib/zend/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a74a891e4846e2f82af9c9f393d9ef35378d810c
|
4
|
+
data.tar.gz: d0206a442cea994d46fb6584e58ca97ef34fd864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5e9297e6ed6cb4607992e5d6fa18417ecfec2732911e7f0a6d7a6592135f45d61110592fca23fb03063216281747401a75c9ba16e76990cf364811ac9655932
|
7
|
+
data.tar.gz: 960093e804db3da56f18ca731a6ea7d2fce77c24080cd9596f1de0c932e17cebac8634db9c578d4a340e1c31ff847172d9f80aa0175d984c14f958186bace567
|
data/CHANGELOG.md
CHANGED
data/lib/zend/cli.rb
CHANGED
@@ -1,4 +1,27 @@
|
|
1
1
|
module Zend
|
2
|
+
class Tickets < Thor
|
3
|
+
desc 'tickets list [string]', 'Print list of tickets'
|
4
|
+
option :new, aliases: '-n', type: :boolean, desc: 'include new tickets'
|
5
|
+
option :open, aliases: '-o', type: :boolean, desc: 'include open tickets'
|
6
|
+
option :pending, aliases: '-p', type: :boolean, desc: 'include pending tickets'
|
7
|
+
option :solved, aliases: '-s', type: :boolean, desc: 'include solved tickets'
|
8
|
+
option :closed, aliases: '-c', type: :boolean, desc: 'include closed tickets'
|
9
|
+
option :tags, aliases: '-t', type: :array, desc: 'only list tickets containing these tags'
|
10
|
+
def list(query='')
|
11
|
+
Zend::Command::Ticket::List.new(query, options)
|
12
|
+
end
|
13
|
+
|
14
|
+
desc 'show ID', 'Get details of a Zendesk ticket'
|
15
|
+
def show(id)
|
16
|
+
Zend::Command::Ticket::Show.new(id)
|
17
|
+
end
|
18
|
+
|
19
|
+
desc 'description ID [DESCRIPTION]', 'Get single line ticket description'
|
20
|
+
def description(id, description=nil)
|
21
|
+
Zend::Command::Ticket::Description.new(id, description)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
2
25
|
class CLI < Thor
|
3
26
|
|
4
27
|
desc 'login', 'Starts prompt to login to your Zendesk account'
|
@@ -11,29 +34,7 @@ module Zend
|
|
11
34
|
Zend::Auth.logout
|
12
35
|
end
|
13
36
|
|
14
|
-
class Tickets < Thor
|
15
|
-
desc 'tickets list [string]', 'Print list of tickets'
|
16
|
-
option :new, aliases: '-n', type: :boolean, desc: 'include new tickets'
|
17
|
-
option :open, aliases: '-o', type: :boolean, desc: 'include open tickets'
|
18
|
-
option :pending, aliases: '-p', type: :boolean, desc: 'include pending tickets'
|
19
|
-
option :solved, aliases: '-s', type: :boolean, desc: 'include solved tickets'
|
20
|
-
option :closed, aliases: '-c', type: :boolean, desc: 'include closed tickets'
|
21
|
-
option :tags, aliases: '-t', type: :array, desc: 'only list tickets containing these tags'
|
22
|
-
def list(query='')
|
23
|
-
Zend::Command::Ticket::List.new(query, options)
|
24
|
-
end
|
25
|
-
|
26
|
-
desc 'show ID', 'Get details of a Zendesk ticket'
|
27
|
-
def show(id)
|
28
|
-
Zend::Command::Ticket::Show.new(id)
|
29
|
-
end
|
30
|
-
|
31
|
-
desc 'description ID [DESCRIPTION]', 'Get single line ticket description'
|
32
|
-
def description(id, description=nil)
|
33
|
-
Zend::Command::Ticket::Description.new(id, description)
|
34
|
-
end
|
35
|
-
end
|
36
37
|
desc 'tickets SUBCOMMAND ...ARGS', 'manage tickets'
|
37
|
-
subcommand 'tickets',
|
38
|
+
subcommand 'tickets', Tickets
|
38
39
|
end
|
39
40
|
end
|
data/lib/zend/version.rb
CHANGED