linear-cli 0.3.5 → 0.3.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83b0425687f78c53bc8f09dd8980858c2875d577800b0154425392b5bc443252
4
- data.tar.gz: 4189868633d0395dc9924e6cc4f0889d88d87ba27a4a469d2a9ff538fa3ffc2f
3
+ metadata.gz: 5e03219a11f43a3e19a52634daa643b177be7a473750feced88ab50e6cf81c94
4
+ data.tar.gz: c3d9379842883bac0db022fa88f466402585735a1d7eed5fdaddc5f09c1cf803
5
5
  SHA512:
6
- metadata.gz: ad6473953d82c61bf9a5f05948dd7f20ac61b04f3c9eae802494067ceb789a6210ac66cd7b797d93b31842f1fa534e08679dca91e9faf29467050b8e3fd1fb02
7
- data.tar.gz: 573d73dc10e94bf792c304e9fd1505414afe967ebdacdbd808243f84ad47b25a980ea77eb6646a037bcb0a8552c4e1aff56dd64e355d18186379c9eeb52d25cb
6
+ metadata.gz: caafef161a97eb9ac34cfbc1fe792bb2d34cf996474d03437fc361ad6b390b4deadc88c782e874b81fc2145c50964be376203eb4ebf77a5b0d73bf4b0956c682
7
+ data.tar.gz: 481f7c72a9569d713e5eaaae72c5de3e77220178fb7f424cdd89c6db99d5bae728fb9487ae5658467d2e7d6d4db92a74ec5c40342bec7aaec55d6177d971b2e2
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.3.5'
5
+ VERSION = '0.3.8'
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]
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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel