linear-cli 0.8.6 → 0.9.1

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: ab8ebfb7eabbfc9974cadc1255b77882b07a5b77b7311b7c28f32ab05cc6d36d
4
- data.tar.gz: 4a113e8634b37e1cce2a0eb8f42319dfbe17dcf799da754cbdc3070464101d82
3
+ metadata.gz: f1cbd7a5da27f04067aa33ea976feceacb897b58872e88450e53e059aa4da61a
4
+ data.tar.gz: 47dcf32313f84de194e8faf27de087344700225975cd88cce079acaf13a5dc89
5
5
  SHA512:
6
- metadata.gz: d6509b777cc1629deac09377df81239df88639480f28910bf84c84504f050a2536dffc2229438a8e6555dccab423410ed02cc7deb039caa7170fd5cb946ca63d
7
- data.tar.gz: 64b15071808806cd2358b50e3768f1297e0dd09ce461640c14266c5329e4d75e160042438e93700f999b4e78214256874a10ae33369dfc3394922f6077f95235
6
+ metadata.gz: a2a0d491b9ff5e1af1b3f76ae500766c65f63866986394d824e22debf4a56a70c5f530009d271dc90d882df0a508801c5bbbfbf0ef1c20869812c63fc49257e8
7
+ data.tar.gz: de285eca24908a3c9ff7d227fb42d6ebbab5fd0be458490c9387a6fb8f4a5b11370cd8b1c281aae488924f888b608c698996a150d26691b4f3b64cbc20b69f2e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
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
+
9
+ ## [0.9.0] - 2024-02-06
10
+ ### Added
11
+ - Added version. Ready for 0.9.0, now test-test-test-test before 1.0 (@bougyman)
12
+
5
13
  ## [0.8.6] - 2024-02-06
6
14
  ### Fixed
7
15
  - Fixed completion for lc alias (@bougyman)
@@ -67,8 +75,10 @@
67
75
  ### Added
68
76
  - Added new changelog management system (changelog-rb) (@bougyman)
69
77
 
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
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
81
+ [0.8.6]: https://github.com/rubyists/linear-cli/compare/v0.8.4...v0.8.6
72
82
  [0.8.4]: https://github.com/rubyists/linear-cli/compare/v0.8.1...v0.8.4
73
83
  [0.8.1]: https://github.com/rubyists/linear-cli/compare/v0.8.0...v0.8.1
74
84
  [0.8.0]: https://github.com/rubyists/linear-cli/compare/v0.7.7...v0.8.0
data/Readme.adoc CHANGED
@@ -57,15 +57,21 @@ bash:
57
57
 
58
58
  [source,sh]
59
59
  ----
60
- eval "$(lc completion bash)"
60
+ eval "$(lc completion bash)" <1>
61
+ eval "$(lc completion -a bash)" <2>
61
62
  ----
63
+ <1> This will enable tab completion for the 'lc' command in bash
64
+ <2> This will include the subcommand aliases as well
62
65
 
63
66
  zsh:
64
67
 
65
68
  [source,sh]
66
69
  ----
67
- eval "$(lc completion zsh)"
70
+ eval "$(lc completion zsh)" <1>
71
+ eval "$(lc completion -a zsh)" <2>
68
72
  ----
73
+ <1> This will enable tab completion for the 'lc' command in zsh
74
+ <2> This will include the subcommand aliases as well
69
75
 
70
76
  === Commands
71
77
 
@@ -82,13 +88,16 @@ $ lc [COMMAND] [SUBCOMMAND] --help
82
88
 
83
89
  ==== Who Am I?
84
90
 
85
- You can use the 'w' alias for 'whoami'
91
+ You can use the 'w' alias for 'whoami' (or whodat, for Saints fans)
86
92
 
87
93
  [source,sh]
88
94
  ----
89
95
  $ lc whoami
90
- $ lc w --teams
96
+ $ lc whodat <1>
97
+ $ lc w --teams <2>
91
98
  ----
99
+ <1> Bayou style
100
+ <2> Include the teams you are a member of
92
101
 
93
102
  ==== List Issues
94
103
 
@@ -125,6 +134,8 @@ $ lc i c -t "My new issue" -T CRY -l Improvement,Feature
125
134
 
126
135
  NOTE: If you don't provide a title, team, labels or description, you will be prompted to enter them.
127
136
 
137
+ TIP: When creating an issue, you can use the --dev option to immediately start development on the issue.
138
+
128
139
  ==== Develop an issue
129
140
 
130
141
  This will switch to the branch for the issue, creating the branch if it doesn't exist.
@@ -136,7 +147,14 @@ This will switch to the branch for the issue, creating the branch if it doesn't
136
147
  $ lc i dev CRY-1234
137
148
  ----
138
149
 
139
- TIP: You may pass the --dev option to the create subcommand to immediately develop the created issue.
150
+ ===== Create a Pull Request (Using the Semantic PR Title)
151
+
152
+ Requires the `gh` cli to be installed and configured.
153
+
154
+ [source,sh]
155
+ ----
156
+ $ lc i pr CRY-1234
157
+ ----
140
158
 
141
159
  ==== Update an issue
142
160
 
@@ -148,12 +166,16 @@ at a time. You can also use the 'u' alias for 'update', and as always, the 'i' a
148
166
  [source,sh]
149
167
  ----
150
168
  $ lc issue update --comment "Here is a comment" CRY-1234 <1>
151
- $ lc issue update --comment - CRY-14 CRY-15 <2>
152
- $ lcomment CRY-1234 CRY-3 <3>
153
- ----
154
- <1> This will use the provided comment
155
- <2> This will prompt for a comment (use '-' to prompt)
156
- <3> This will always prompt you for a comment ('lcomment' is an alias for 'lc issue update --comment -')
169
+ $ lc issue u --close --reason "I do not like you" CRY-14 CRY-15 <2>
170
+ $ lc i u --cancel --trash --reason "I have no idea why you are here" CRY-16 CRY-17 <3>
171
+ $ lc i u --comment - CRY-14 CRY-15 <4>
172
+ $ lcomment CRY-1234 CRY-3 <5>
173
+ ----
174
+ <1> This will use the provided comment to comment on the issue
175
+ <2> This will close multiple issues without prompting (reason is added as a comment)
176
+ <3> This will cancel multiple issues without prompting, and move them to the trash (reason is added as a comment)
177
+ <4> This will prompt for a comment (use '-' to prompt)
178
+ <5> This will always prompt you for a comment ('lcomment' is an alias for 'lc issue update --comment -')
157
179
 
158
180
  ===== Close one or many issues
159
181
 
@@ -0,0 +1,4 @@
1
+ type: Added
2
+ title: >
3
+ Added version. Ready for 0.9.0, now test-test-test-test before 1.0
4
+ author: bougyman
@@ -0,0 +1 @@
1
+ date: 2024-02-06
@@ -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,23 @@ 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 it\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
24
  if [ $result -gt 1 ]; then
25
+ if [ $result -eq 130 ]; then
26
+ printf "\n\nlc: linear-cli interrupted\n" >&2
27
+ exit 130
28
+ fi
19
29
  printf "lc: linear-cli failed %s\n" $result >&2
20
30
  lc "$@" --help 2>&1
21
31
  exit 1
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubyists
4
4
  module Linear
5
- VERSION = '0.8.6'
5
+ VERSION = '0.9.1'
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.8.6
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tj (bougyman) Vanderpoel
@@ -242,6 +242,10 @@ files:
242
242
  - changelog/0.8.4/tag.yml
243
243
  - changelog/0.8.6/fixed_completion_for_lc_alias.yml
244
244
  - changelog/0.8.6/tag.yml
245
+ - changelog/0.9.0/added_version_ready_for_0_9_0_now_test_test_test_test_before_1_0.yml
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
245
249
  - changelog/unreleased/.gitkeep
246
250
  - cinemas/listings.cinema
247
251
  - cinemas/listings.cinema.gif