linear-cli 0.3.5 → 0.3.7

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: 83b0425687f78c53bc8f09dd8980858c2875d577800b0154425392b5bc443252
4
- data.tar.gz: 4189868633d0395dc9924e6cc4f0889d88d87ba27a4a469d2a9ff538fa3ffc2f
3
+ metadata.gz: a657a20c02e60b43a7e95a2dec9b3e0283d32c9a49a8b0776f5d76dce3242f12
4
+ data.tar.gz: 2e2b49dfc066b4d4a3bb4096334d790655561c1471ce317de69602626fa5ce06
5
5
  SHA512:
6
- metadata.gz: ad6473953d82c61bf9a5f05948dd7f20ac61b04f3c9eae802494067ceb789a6210ac66cd7b797d93b31842f1fa534e08679dca91e9faf29467050b8e3fd1fb02
7
- data.tar.gz: 573d73dc10e94bf792c304e9fd1505414afe967ebdacdbd808243f84ad47b25a980ea77eb6646a037bcb0a8552c4e1aff56dd64e355d18186379c9eeb52d25cb
6
+ metadata.gz: c3ef419b55bf1c4235d638ae70464909c26684ee4db0b1935e826c8f1c38e7af16d1fa2646d90ceb69ca041d404406fe377e7c247721edf0916982b381ce46ea
7
+ data.tar.gz: f691a20665c94a02d1370aaf32a937c6792e1a9d4a71067041f082ee2297bff840c01aeb065d87712e95aa6b991b8210a5245f500ad34ee3c3571bc7629c2c16
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.3.5'
5
+ VERSION = '0.3.7'
6
6
  end
7
7
  end
@@ -16,18 +16,21 @@ module Rubyists
16
16
  include SemanticLogger::Loggable
17
17
  include Rubyists::Linear::CLI::CommonOptions
18
18
 
19
+ argument :ids, type: :array, default: [], desc: 'Issue IDs to list'
19
20
  option :mine, type: :boolean, default: true, desc: 'Only show my issues'
20
21
  option :unassigned, aliases: ['-u'], type: :boolean, default: false, desc: 'Show unassigned issues only'
21
22
  option :full, type: :boolean, aliases: ['-f'], default: false, desc: 'Show full issue details'
22
23
 
23
- def call(**options)
24
+ def call(ids:, **options)
24
25
  logger.debug 'Listing issues'
26
+ return display(issues_for(options), options) if ids.empty?
25
27
 
26
- display issues_for(options), options
28
+ display issues_for(options.merge(ids:)), options
27
29
  end
28
30
 
29
31
  def issues_for(options)
30
32
  logger.debug('Fetching issues', options:)
33
+ return options[:ids].map { |id| Rubyists::Linear::Issue.find(id) } if options[:ids].any?
31
34
  return Rubyists::Linear::Issue.all(filter: { assignee: { null: true } }) if options[:unassigned]
32
35
  return Rubyists::Linear::User.me.issues if options[:mine]
33
36
 
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.5
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel