linear-cli 0.9.0 → 0.9.2
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.9.1/fixed_wrapper_to_be_more_normal_about_help_when_listing_leaf_commands.yml +4 -0
- data/changelog/0.9.1/tag.yml +1 -0
- data/exe/scripts/lc.sh +12 -3
- data/exe/scripts/lclose.sh +2 -2
- data/exe/scripts/lcreate.sh +1 -1
- data/lib/linear/cli/version.rb +1 -1
- data/lib/linear/commands/issue/create.rb +8 -4
- 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: 75ce37ab15aa10df291b3d4f0be968cb0dd4dda493500344f624d6661bd69ef0
|
4
|
+
data.tar.gz: 3a81df1dae83cf68b1a36d2da40d92e124c83de422be451734d7205ca9150ef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f39181677f3db9870c58d35a8aea9c1f0cd28d4db8dab8bcfdea879cc4fa3f30a87913cc3b1b540874dc7c944929833b6204628a78c737162fafbb46db2aa2c
|
7
|
+
data.tar.gz: 3f5c77b697562de79d80a305e7216ac3c588fdfad29aec2d570125c06c92b55470f0cff2a1c4916ad48f80fa84c5f198b1341c9e248ef9a3d7364bb2d4d08a2b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [0.9.1] - 2024-02-06
|
6
|
+
### Fixed
|
7
|
+
- Fixed wrapper to be more normal about help when listing leaf commands (@bougyman)
|
8
|
+
|
5
9
|
## [0.9.0] - 2024-02-06
|
6
10
|
### Added
|
7
11
|
- Added version. Ready for 0.9.0, now test-test-test-test before 1.0 (@bougyman)
|
@@ -71,8 +75,9 @@
|
|
71
75
|
### Added
|
72
76
|
- Added new changelog management system (changelog-rb) (@bougyman)
|
73
77
|
|
74
|
-
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.9.
|
75
|
-
[0.9.
|
78
|
+
[Unreleased]: https://github.com/rubyists/linear-cli/compare/0.9.1...HEAD
|
79
|
+
[0.9.1]: https://github.com/rubyists/linear-cli/compare/v0.9.0...0.9.1
|
80
|
+
[0.9.0]: https://github.com/rubyists/linear-cli/compare/v0.8.6...v0.9.0
|
76
81
|
[0.8.6]: https://github.com/rubyists/linear-cli/compare/v0.8.4...v0.8.6
|
77
82
|
[0.8.4]: https://github.com/rubyists/linear-cli/compare/v0.8.1...v0.8.4
|
78
83
|
[0.8.1]: https://github.com/rubyists/linear-cli/compare/v0.8.0...v0.8.1
|
@@ -0,0 +1 @@
|
|
1
|
+
date: 2024-02-06
|
data/exe/scripts/lc.sh
CHANGED
@@ -9,13 +9,22 @@ then
|
|
9
9
|
fi
|
10
10
|
if [[ "$*" =~ --help|-h ]]
|
11
11
|
then
|
12
|
-
|
13
|
-
|
12
|
+
output="$(linear-cli "$@" 2>&1|sed 's/linear-cli/lc/g')"
|
13
|
+
if [[ "$output" =~ ^Command: ]]
|
14
|
+
then
|
15
|
+
printf "%s\n" "$output"
|
16
|
+
else
|
17
|
+
printf "Each subcommand has its own help, use 'lc <subcommand> --help' to see them\n" >&2
|
18
|
+
printf "%s\n" "$output"
|
19
|
+
fi
|
14
20
|
exit 0
|
15
21
|
fi
|
16
22
|
linear-cli "$@"
|
17
23
|
result=$?
|
18
|
-
if [ $result -
|
24
|
+
if [ $result -eq 1 ]; then
|
25
|
+
printf "\nlc: You may pass --help for further information on any subcommand\n" >&2
|
26
|
+
exit 1
|
27
|
+
elif [ $result -gt 1 ]; then
|
19
28
|
if [ $result -eq 130 ]; then
|
20
29
|
printf "\n\nlc: linear-cli interrupted\n" >&2
|
21
30
|
exit 130
|
data/exe/scripts/lclose.sh
CHANGED
@@ -4,6 +4,6 @@ then
|
|
4
4
|
printf "This wrapper adds the --close option to the 'issue update' command.\n" >&2
|
5
5
|
printf "It is used to close one or many issues. The issues are specified by their ID/slugs.\n" >&2
|
6
6
|
printf "For closing multiple issues, you really want to pass --reason so you do not get prompted for each issue.\n\n" >&2
|
7
|
-
exec
|
7
|
+
exec lc issue update --close --help
|
8
8
|
fi
|
9
|
-
exec
|
9
|
+
exec lc issue update --close "$@"
|
data/exe/scripts/lcreate.sh
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
-
exec
|
2
|
+
exec lc issue create "$@"
|
data/lib/linear/cli/version.rb
CHANGED
@@ -16,13 +16,17 @@ module Rubyists
|
|
16
16
|
include SemanticLogger::Loggable
|
17
17
|
include Rubyists::Linear::CLI::CommonOptions
|
18
18
|
include Rubyists::Linear::CLI::Issue # for #gimme_da_issue! and other Issue methods
|
19
|
-
desc 'Create a new issue'
|
20
|
-
option :title, type: :string, aliases: ['-t'], desc: 'Issue Title'
|
19
|
+
desc 'Create a new issue. If you do not pass any options, you will be prompted for the required information.'
|
21
20
|
option :description, type: :string, aliases: ['-d'], desc: 'Issue Description'
|
22
|
-
option :team, type: :string, aliases: ['-T'], desc: 'Team Identifier'
|
23
21
|
option :labels, type: :array, aliases: ['-l'], desc: 'Labels for the issue (Comma separated list)'
|
24
22
|
option :project, type: :string, aliases: ['-p'], desc: 'Project Identifier'
|
25
|
-
option :
|
23
|
+
option :team, type: :string, aliases: ['-T'], desc: 'Team Identifier'
|
24
|
+
option :title, type: :string, aliases: ['-t'], desc: 'Issue Title'
|
25
|
+
option :develop,
|
26
|
+
type: :boolean,
|
27
|
+
default: false,
|
28
|
+
aliases: ['--dev'],
|
29
|
+
desc: 'Start development after creating the issue'
|
26
30
|
|
27
31
|
def call(**options)
|
28
32
|
logger.debug('Creating issue', options:)
|
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.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tj (bougyman) Vanderpoel
|
@@ -244,6 +244,8 @@ files:
|
|
244
244
|
- changelog/0.8.6/tag.yml
|
245
245
|
- changelog/0.9.0/added_version_ready_for_0_9_0_now_test_test_test_test_before_1_0.yml
|
246
246
|
- changelog/0.9.0/tag.yml
|
247
|
+
- changelog/0.9.1/fixed_wrapper_to_be_more_normal_about_help_when_listing_leaf_commands.yml
|
248
|
+
- changelog/0.9.1/tag.yml
|
247
249
|
- changelog/unreleased/.gitkeep
|
248
250
|
- cinemas/listings.cinema
|
249
251
|
- cinemas/listings.cinema.gif
|