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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a657a20c02e60b43a7e95a2dec9b3e0283d32c9a49a8b0776f5d76dce3242f12
4
- data.tar.gz: 2e2b49dfc066b4d4a3bb4096334d790655561c1471ce317de69602626fa5ce06
3
+ metadata.gz: 9a54562fa1c7ec34e3fcb28c1e133a5e6e3399599a7aa8cd53f7b8da0a8de19b
4
+ data.tar.gz: 19b837557134ebe9be0c6a965aa7b9e2a2a35d0b41ae30ea64ddeb3280228cac
5
5
  SHA512:
6
- metadata.gz: c3ef419b55bf1c4235d638ae70464909c26684ee4db0b1935e826c8f1c38e7af16d1fa2646d90ceb69ca041d404406fe377e7c247721edf0916982b381ce46ea
7
- data.tar.gz: f691a20665c94a02d1370aaf32a937c6792e1a9d4a71067041f082ee2297bff840c01aeb065d87712e95aa6b991b8210a5245f500ad34ee3c3571bc7629c2c16
6
+ metadata.gz: 6a0abe8d4f7b48ccfbfc6d349bf025da56d17df16b5b3d5575fcd483b69edb8eda7e4ab123952bca96de700e35ee82a246ff033d3e23823e1a25d5d4a901dc19
7
+ data.tar.gz: 54d4a171abbfd4069e81209e3338e678b0a4e4eba74a642c1074c5b91ba2cd7aea4478b493cb0af5f2fcf97fa85effc5ebc73e3ce958062cb0664da165bfeb40
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.3.7'
5
+ VERSION = '0.3.9'
6
6
  end
7
7
  end
@@ -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].any?
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linear-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel