linear-cli 0.9.0 → 0.9.2

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: aa24cd1254fe2c0bc65f7eb7f72af3db8f90a9ad063490a1494212db24acb95e
4
- data.tar.gz: 18184020027e3d061cb4c0080f16dc0caca227d59a29516071acfb9f33a8c5b2
3
+ metadata.gz: 75ce37ab15aa10df291b3d4f0be968cb0dd4dda493500344f624d6661bd69ef0
4
+ data.tar.gz: 3a81df1dae83cf68b1a36d2da40d92e124c83de422be451734d7205ca9150ef9
5
5
  SHA512:
6
- metadata.gz: f76b2b58a5e16871debfce914992b6cc83267fa75208f828c31fa1639e83e01652e33abad18ebdd2ca6f66ab37170a29066534aaddc6c1a7c25855258556a8ee
7
- data.tar.gz: fb8c170846765e58120a7a2f43914e039321ba8ff493a7274d8142dfce19351dd111b7072a68abcef297ad05aae7e90cf7ec48e3a1953c819d4834ccf7250316
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.0...HEAD
75
- [0.9.0]: https://github.com/rubyists/linear-cli/compare/v0.8.6...0.9.0
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,4 @@
1
+ type: Fixed
2
+ title: >
3
+ Fixed wrapper to be more normal about help when listing leaf commands
4
+ author: bougyman
@@ -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
- printf "Each subcommand has its own help, use 'lc <subcommand> --help' to see them\n" >&2
13
- linear-cli "$@" 2>&1|sed 's/linear-cli/lc/g'
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 -gt 1 ]; then
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
@@ -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 linear-cli issue update --help
7
+ exec lc issue update --close --help
8
8
  fi
9
- exec linear-cli issue update --close "$@"
9
+ exec lc issue update --close "$@"
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env bash
2
- exec linear-cli issue create "$@"
2
+ exec lc issue create "$@"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.9.0'
5
+ VERSION = '0.9.2'
6
6
  end
7
7
  end
@@ -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 :develop, type: :boolean, aliases: ['-D', '--dev'], desc: 'Start development after creating the issue'
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.0
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