linear-cli 0.8.4 → 0.8.6

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: be7d89c8525d2e878c4b092b0e648fa2df2fd8e50fe2f9dbf4e8bc8fc485d01c
4
- data.tar.gz: 2aae40e3bb4c38f98cbf96b555fa0168f6e3979edf0cd41e18bfc531880a4c21
3
+ metadata.gz: ab8ebfb7eabbfc9974cadc1255b77882b07a5b77b7311b7c28f32ab05cc6d36d
4
+ data.tar.gz: 4a113e8634b37e1cce2a0eb8f42319dfbe17dcf799da754cbdc3070464101d82
5
5
  SHA512:
6
- metadata.gz: af51a54a3c17787e21fbe31db483e13553bf0028ff1b518667b37f67f75b2898f42f88746ebf0b15081c21af79c605306307250f4b456f083b90e6e1c351c511
7
- data.tar.gz: b5e99a0c3c2a004cd4ffb8060959ae84c429ed5b5b7f4756067d8af82d576667e8159b55df11c7a7519d8fe21a5c2a7c71b7b50130c11937865b6eda8af3e334
6
+ metadata.gz: d6509b777cc1629deac09377df81239df88639480f28910bf84c84504f050a2536dffc2229438a8e6555dccab423410ed02cc7deb039caa7170fd5cb946ca63d
7
+ data.tar.gz: 64b15071808806cd2358b50e3768f1297e0dd09ce461640c14266c5329e4d75e160042438e93700f999b4e78214256874a10ae33369dfc3394922f6077f95235
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.8.6] - 2024-02-06
6
+ ### Fixed
7
+ - Fixed completion for lc alias (@bougyman)
8
+
5
9
  ## [0.8.4] - 2024-02-06
6
10
  ### Added
7
11
  - Added version command (@bougyman)
@@ -63,8 +67,9 @@
63
67
  ### Added
64
68
  - Added new changelog management system (changelog-rb) (@bougyman)
65
69
 
66
- [Unreleased]: https://github.com/rubyists/linear-cli/compare/0.8.4...HEAD
67
- [0.8.4]: https://github.com/rubyists/linear-cli/compare/v0.8.1...0.8.4
70
+ [Unreleased]: https://github.com/rubyists/linear-cli/compare/0.8.6...HEAD
71
+ [0.8.6]: https://github.com/rubyists/linear-cli/compare/v0.8.4...0.8.6
72
+ [0.8.4]: https://github.com/rubyists/linear-cli/compare/v0.8.1...v0.8.4
68
73
  [0.8.1]: https://github.com/rubyists/linear-cli/compare/v0.8.0...v0.8.1
69
74
  [0.8.0]: https://github.com/rubyists/linear-cli/compare/v0.7.7...v0.8.0
70
75
  [0.7.7]: https://github.com/rubyists/linear-cli/compare/v0.7.5...v0.7.7
@@ -0,0 +1,4 @@
1
+ type: Fixed
2
+ title: >
3
+ Fixed completion for lc alias
4
+ author: bougyman
@@ -0,0 +1 @@
1
+ date: 2024-02-06
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.8.4'
5
+ VERSION = '0.8.6'
6
6
  end
7
7
  end
data/lib/linear/cli.rb CHANGED
@@ -7,6 +7,31 @@ require 'semantic_logger'
7
7
  require 'tty-markdown'
8
8
  require 'tty-prompt'
9
9
 
10
+ module Dry
11
+ class CLI
12
+ module Completion
13
+ # Monkeypatching the Generator just to add our 'lc' alias :(
14
+ class Generator
15
+ def call(shell:, include_aliases: false, out: StringIO.new) # rubocop:disable Metrics/MethodLength
16
+ raise ArgumentError, 'Unknown shell' unless SUPPORTED_SHELLS.include?(shell)
17
+
18
+ if shell == ZSH
19
+ out.puts '# enable bash completion support, see https://github.com/dannyben/completely#completions-in-zsh'
20
+ out.puts 'autoload -Uz +X compinit && compinit'
21
+ out.puts 'autoload -Uz +X bashcompinit && bashcompinit'
22
+ end
23
+
24
+ out.puts Completely::Completions.new(
25
+ Input.new(@registry, @program_name).call(include_aliases:)
26
+ ).script
27
+ out.puts 'complete -F _linear-cli_completions lc'
28
+ out.string
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+
10
35
  # The Rubyists module is the top-level namespace for all Rubyists projects
11
36
  module Rubyists
12
37
  module Linear
@@ -54,12 +79,13 @@ module Rubyists
54
79
  end
55
80
  end
56
81
 
57
- Pathname.new(__FILE__).dirname.join('cli').glob('*.rb').each do |file|
82
+ # Load CLI Helpers/libraries
83
+ Pathname.new(__dir__).join('cli').glob('*.rb').each do |file|
58
84
  require file.expand_path
59
85
  end
60
86
 
61
- # Load all our commands
62
- Pathname.new(__FILE__).dirname.join('commands').glob('*.rb').each do |file|
87
+ # Load all our commands and subcommands
88
+ Pathname.new(__dir__).join('commands').glob('*.rb').each do |file|
63
89
  require file.expand_path
64
90
  end
65
91
 
@@ -67,6 +93,7 @@ module Rubyists
67
93
  # Open this back up to register 3rd party/other commands
68
94
  module CLI
69
95
  register 'completion', Dry::CLI::Completion::Command[self]
96
+ # NOTE: We have monkeypatched the Generator to add our 'lc' alias
70
97
  end
71
98
  end
72
99
  end
data/oci/Containerfile CHANGED
@@ -28,5 +28,5 @@ RUN apk --update --no-cache add $PACKAGES
28
28
  COPY --from=build-env /app/pkg /tmp
29
29
  RUN ls /tmp/*.gem && gem install /tmp/*.gem
30
30
 
31
- CMD %w[bundle exec lc]
31
+ CMD ["bundle", "exec", "lc"]
32
32
 
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.8.4
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -240,6 +240,8 @@ files:
240
240
  - changelog/0.8.1/tag.yml
241
241
  - changelog/0.8.4/added_version_command.yml
242
242
  - changelog/0.8.4/tag.yml
243
+ - changelog/0.8.6/fixed_completion_for_lc_alias.yml
244
+ - changelog/0.8.6/tag.yml
243
245
  - changelog/unreleased/.gitkeep
244
246
  - cinemas/listings.cinema
245
247
  - cinemas/listings.cinema.gif