linear-cli 0.3.7 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linear/cli/version.rb +1 -1
- data/lib/linear/commands/issue/list.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a54562fa1c7ec34e3fcb28c1e133a5e6e3399599a7aa8cd53f7b8da0a8de19b
|
4
|
+
data.tar.gz: 19b837557134ebe9be0c6a965aa7b9e2a2a35d0b41ae30ea64ddeb3280228cac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a0abe8d4f7b48ccfbfc6d349bf025da56d17df16b5b3d5575fcd483b69edb8eda7e4ab123952bca96de700e35ee82a246ff033d3e23823e1a25d5d4a901dc19
|
7
|
+
data.tar.gz: 54d4a171abbfd4069e81209e3338e678b0a4e4eba74a642c1074c5b91ba2cd7aea4478b493cb0af5f2fcf97fa85effc5ebc73e3ce958062cb0664da165bfeb40
|
data/lib/linear/cli/version.rb
CHANGED
@@ -16,6 +16,14 @@ module Rubyists
|
|
16
16
|
include SemanticLogger::Loggable
|
17
17
|
include Rubyists::Linear::CLI::CommonOptions
|
18
18
|
|
19
|
+
desc 'List issues'
|
20
|
+
example [
|
21
|
+
' # List your issues',
|
22
|
+
'--no-mine # List The most recent 100 issues',
|
23
|
+
'-u # List unassigned issues',
|
24
|
+
'-fu # List unassigned issues with full details',
|
25
|
+
'CRY-123 # Show issue CRY-123'
|
26
|
+
]
|
19
27
|
argument :ids, type: :array, default: [], desc: 'Issue IDs to list'
|
20
28
|
option :mine, type: :boolean, default: true, desc: 'Only show my issues'
|
21
29
|
option :unassigned, aliases: ['-u'], type: :boolean, default: false, desc: 'Show unassigned issues only'
|
@@ -30,7 +38,7 @@ module Rubyists
|
|
30
38
|
|
31
39
|
def issues_for(options)
|
32
40
|
logger.debug('Fetching issues', options:)
|
33
|
-
return options[:ids].map { |id| Rubyists::Linear::Issue.find(id) } if options[:ids]
|
41
|
+
return options[:ids].map { |id| Rubyists::Linear::Issue.find(id) } if options[:ids]
|
34
42
|
return Rubyists::Linear::Issue.all(filter: { assignee: { null: true } }) if options[:unassigned]
|
35
43
|
return Rubyists::Linear::User.me.issues if options[:mine]
|
36
44
|
|