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 +4 -4
- data/CHANGELOG.md +7 -2
- data/changelog/0.8.6/fixed_completion_for_lc_alias.yml +4 -0
- data/changelog/0.8.6/tag.yml +1 -0
- data/lib/linear/cli/version.rb +1 -1
- data/lib/linear/cli.rb +30 -3
- data/oci/Containerfile +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab8ebfb7eabbfc9974cadc1255b77882b07a5b77b7311b7c28f32ab05cc6d36d
|
4
|
+
data.tar.gz: 4a113e8634b37e1cce2a0eb8f42319dfbe17dcf799da754cbdc3070464101d82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
67
|
-
[0.8.
|
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 @@
|
|
1
|
+
date: 2024-02-06
|
data/lib/linear/cli/version.rb
CHANGED
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
|
-
|
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(
|
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
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
|
+
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
|