Skip to content

Commit fad455a

Browse files
committed
release: 1.2.0 [skip ci]
## [1.2.0](v1.1.4...v1.2.0) (2024-03-18) #### ✨ Features * Add `showHelp` option to `CliError` ([b5a1e58](b5a1e58))
1 parent b5a1e58 commit fad455a

File tree

10 files changed

+184
-115
lines changed

10 files changed

+184
-115
lines changed

CHANGELOG.md

Lines changed: 53 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,86 +4,94 @@ All notable changes to this project will be documented in this auto-generated
44
file. The format is based on [Conventional Commits][1];
55
this project adheres to [Semantic Versioning][2].
66

7-
### [1.1.4][3] (2024-03-16)
7+
## [1.2.0][3] (2024-03-18)
8+
9+
#### ✨ Features
10+
11+
- Add `showHelp` option to `CliError` ([b5a1e58][4])
12+
13+
### [1.1.4][5] (2024-03-16)
814

915
#### 🪄 Fixes
1016

11-
- **types:** allow exported types to specify custom `ExecutionContext` ([f66599b][4])
17+
- **types:** allow exported types to specify custom `ExecutionContext` ([f66599b][6])
1218

13-
### [1.1.3][5] (2024-03-15)
19+
### [1.1.3][7] (2024-03-15)
1420

1521
#### 🪄 Fixes
1622

17-
- Add support for `export default X` syntax ([bad391d][6])
18-
- Ensure `demandOption` is properly supported ([2f205c1][7])
23+
- Add support for `export default X` syntax ([bad391d][8])
24+
- Ensure `demandOption` is properly supported ([2f205c1][9])
1925

20-
### [1.1.2][8] (2023-12-31)
26+
### [1.1.2][10] (2023-12-31)
2127

2228
#### 🪄 Fixes
2329

24-
- **readme:** move parserConfiguration call out of dead zone in example ([f79c114][9])
30+
- **readme:** move parserConfiguration call out of dead zone in example ([f79c114][11])
2531

26-
### [1.1.1][10] (2023-12-31)
32+
### [1.1.1][12] (2023-12-31)
2733

2834
#### 🪄 Fixes
2935

30-
- Fix Node10 type resolution failure ([b6178c9][11])
36+
- Fix Node10 type resolution failure ([b6178c9][13])
3137

32-
## [1.1.0][12] (2023-12-31)
38+
## [1.1.0][14] (2023-12-31)
3339

3440
#### ✨ Features
3541

36-
- **src:** support file://-style URLs ([0e5067e][13])
42+
- **src:** support file://-style URLs ([0e5067e][15])
3743

3844
#### 🪄 Fixes
3945

40-
- **src:** ensure --version is included in help text output when relevant ([4f159dc][14])
46+
- **src:** ensure --version is included in help text output when relevant ([4f159dc][16])
4147

4248
#### ⚙️ Build System
4349

44-
- **babel:** fix ESM<=>CJS interop issue ([5470091][15])
50+
- **babel:** fix ESM<=>CJS interop issue ([5470091][17])
4551

46-
## [1.0.0][16] (2023-12-29)
52+
## [1.0.0][18] (2023-12-29)
4753

4854
#### ✨ Features
4955

50-
- **src:** disallow creating commands with conflicting names/aliases ([78bf8ff][17])
56+
- **src:** disallow creating commands with conflicting names/aliases ([78bf8ff][19])
5157

5258
#### 🪄 Fixes
5359

54-
- Rename package from "black-flag" to "[@black-][18]flag/core" npm typosquat workaround ([292ead5][19])
60+
- Rename package from "black-flag" to "[@black-][20]flag/core" npm typosquat workaround ([292ead5][21])
5561

5662
#### ⚙️ Build System
5763

58-
- Fix horrible decision by marked devs to break output for no reason ([036e350][20])
59-
- **jest:** ensure pkg-up is transformed ([c7f4aef][21])
60-
- **jest:** fix transformIgnorePatterns ([0548d34][22])
61-
- **jest:** transpile node\_modules ([5cf7a6c][23])
62-
- **tsconfig:** fix internal path resolution ([fbe3a69][24])
63-
- **tsconfig:** upgrade to NodeNext ([d3a499e][25])
64+
- Fix horrible decision by marked devs to break output for no reason ([036e350][22])
65+
- **jest:** ensure pkg-up is transformed ([c7f4aef][23])
66+
- **jest:** fix transformIgnorePatterns ([0548d34][24])
67+
- **jest:** transpile node\_modules ([5cf7a6c][25])
68+
- **tsconfig:** fix internal path resolution ([fbe3a69][26])
69+
- **tsconfig:** upgrade to NodeNext ([d3a499e][27])
6470

6571
[1]: https://conventionalcommits.org
6672
[2]: https://semver.org
67-
[3]: https://github.com/Xunnamius/black-flag/compare/v1.1.3...v1.1.4
68-
[4]: https://github.com/Xunnamius/black-flag/commit/f66599bfdbb70ada6ec662e0d220a0a2e7047824
69-
[5]: https://github.com/Xunnamius/black-flag/compare/v1.1.2...v1.1.3
70-
[6]: https://github.com/Xunnamius/black-flag/commit/bad391da3019a5743a76ca2e510903f34c84ca53
71-
[7]: https://github.com/Xunnamius/black-flag/commit/2f205c1e8c94d3e6683816e5bbc3ae152e3c83e8
72-
[8]: https://github.com/Xunnamius/black-flag/compare/v1.1.1...v1.1.2
73-
[9]: https://github.com/Xunnamius/black-flag/commit/f79c11476de47bee3fa01e139269393b604b4271
74-
[10]: https://github.com/Xunnamius/black-flag/compare/v1.1.0...v1.1.1
75-
[11]: https://github.com/Xunnamius/black-flag/commit/b6178c9670a95084bca34424e71498f2d29ac48c
76-
[12]: https://github.com/Xunnamius/black-flag/compare/v1.0.0...v1.1.0
77-
[13]: https://github.com/Xunnamius/black-flag/commit/0e5067e2b0913a19bdc6975b50b272bb5872ba98
78-
[14]: https://github.com/Xunnamius/black-flag/commit/4f159dc4b84223dd6b07456c0b50da16d2816bea
79-
[15]: https://github.com/Xunnamius/black-flag/commit/5470091e385ca344e12a280ff95be793742874b8
80-
[16]: https://github.com/Xunnamius/black-flag/compare/d3a499e7aeddf23d392479b2cf99cc98bce8226f...v1.0.0
81-
[17]: https://github.com/Xunnamius/black-flag/commit/78bf8ffb0a6931fb3b131c42ce4b84146bfec842
82-
[18]: https://github.com/black-
83-
[19]: https://github.com/Xunnamius/black-flag/commit/292ead5aa3f18c556d72d714830dcf07b9253e6d
84-
[20]: https://github.com/Xunnamius/black-flag/commit/036e3506edc863da86372163c91dd650d6ac1e87
85-
[21]: https://github.com/Xunnamius/black-flag/commit/c7f4aef48366dc13685fb9805086be52d3561eff
86-
[22]: https://github.com/Xunnamius/black-flag/commit/0548d34f559c3b8ba6d9514f1586aeeb3b382f72
87-
[23]: https://github.com/Xunnamius/black-flag/commit/5cf7a6c79bba3125ce47838e5cfd24a1a08bbd17
88-
[24]: https://github.com/Xunnamius/black-flag/commit/fbe3a699a9063ed7da08311a22fe798672583b0f
89-
[25]: https://github.com/Xunnamius/black-flag/commit/d3a499e7aeddf23d392479b2cf99cc98bce8226f
73+
[3]: https://github.com/Xunnamius/black-flag/compare/v1.1.4...v1.2.0
74+
[4]: https://github.com/Xunnamius/black-flag/commit/b5a1e58add31902fd9ec80b93dd37305b8fd0684
75+
[5]: https://github.com/Xunnamius/black-flag/compare/v1.1.3...v1.1.4
76+
[6]: https://github.com/Xunnamius/black-flag/commit/f66599bfdbb70ada6ec662e0d220a0a2e7047824
77+
[7]: https://github.com/Xunnamius/black-flag/compare/v1.1.2...v1.1.3
78+
[8]: https://github.com/Xunnamius/black-flag/commit/bad391da3019a5743a76ca2e510903f34c84ca53
79+
[9]: https://github.com/Xunnamius/black-flag/commit/2f205c1e8c94d3e6683816e5bbc3ae152e3c83e8
80+
[10]: https://github.com/Xunnamius/black-flag/compare/v1.1.1...v1.1.2
81+
[11]: https://github.com/Xunnamius/black-flag/commit/f79c11476de47bee3fa01e139269393b604b4271
82+
[12]: https://github.com/Xunnamius/black-flag/compare/v1.1.0...v1.1.1
83+
[13]: https://github.com/Xunnamius/black-flag/commit/b6178c9670a95084bca34424e71498f2d29ac48c
84+
[14]: https://github.com/Xunnamius/black-flag/compare/v1.0.0...v1.1.0
85+
[15]: https://github.com/Xunnamius/black-flag/commit/0e5067e2b0913a19bdc6975b50b272bb5872ba98
86+
[16]: https://github.com/Xunnamius/black-flag/commit/4f159dc4b84223dd6b07456c0b50da16d2816bea
87+
[17]: https://github.com/Xunnamius/black-flag/commit/5470091e385ca344e12a280ff95be793742874b8
88+
[18]: https://github.com/Xunnamius/black-flag/compare/d3a499e7aeddf23d392479b2cf99cc98bce8226f...v1.0.0
89+
[19]: https://github.com/Xunnamius/black-flag/commit/78bf8ffb0a6931fb3b131c42ce4b84146bfec842
90+
[20]: https://github.com/black-
91+
[21]: https://github.com/Xunnamius/black-flag/commit/292ead5aa3f18c556d72d714830dcf07b9253e6d
92+
[22]: https://github.com/Xunnamius/black-flag/commit/036e3506edc863da86372163c91dd650d6ac1e87
93+
[23]: https://github.com/Xunnamius/black-flag/commit/c7f4aef48366dc13685fb9805086be52d3561eff
94+
[24]: https://github.com/Xunnamius/black-flag/commit/0548d34f559c3b8ba6d9514f1586aeeb3b382f72
95+
[25]: https://github.com/Xunnamius/black-flag/commit/5cf7a6c79bba3125ce47838e5cfd24a1a08bbd17
96+
[26]: https://github.com/Xunnamius/black-flag/commit/fbe3a699a9063ed7da08311a22fe798672583b0f
97+
[27]: https://github.com/Xunnamius/black-flag/commit/d3a499e7aeddf23d392479b2cf99cc98bce8226f

docs/classes/index.CliError.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ can be used as a simple wrapper around other errors.
3636
- [cause](index.CliError.md#cause)
3737
- [message](index.CliError.md#message)
3838
- [name](index.CliError.md#name)
39+
- [showHelp](index.CliError.md#showhelp)
3940
- [stack](index.CliError.md#stack)
4041
- [suggestedExitCode](index.CliError.md#suggestedexitcode)
4142
- [prepareStackTrace](index.CliError.md#preparestacktrace)
@@ -71,7 +72,7 @@ AppError.constructor
7172

7273
#### Defined in
7374

74-
[src/error.ts:92](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L92)
75+
[src/error.ts:101](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L101)
7576

7677
**new CliError**(`cause`, `options`, `message`, `superOptions`): [`CliError`](index.CliError.md)
7778

@@ -97,7 +98,7 @@ AppError.constructor
9798

9899
#### Defined in
99100

100-
[src/error.ts:97](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L97)
101+
[src/error.ts:106](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L106)
101102

102103
## Properties
103104

@@ -107,7 +108,7 @@ AppError.constructor
107108

108109
#### Defined in
109110

110-
[src/error.ts:87](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L87)
111+
[src/error.ts:96](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L96)
111112

112113
___
113114

@@ -153,6 +154,20 @@ node_modules/typescript/lib/lib.es5.d.ts:1076
153154

154155
___
155156

157+
### showHelp
158+
159+
**showHelp**: `boolean` = `false`
160+
161+
#### Implementation of
162+
163+
NonNullable.showHelp
164+
165+
#### Defined in
166+
167+
[src/error.ts:94](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L94)
168+
169+
___
170+
156171
### stack
157172

158173
`Optional` **stack**: `string`
@@ -177,7 +192,7 @@ NonNullable.suggestedExitCode
177192

178193
#### Defined in
179194

180-
[src/error.ts:85](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L85)
195+
[src/error.ts:93](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L93)
181196

182197
___
183198

docs/classes/index.GracefulEarlyExitError.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ termination of the application but with an exit code indicating success
2626
- [cause](index.GracefulEarlyExitError.md#cause)
2727
- [message](index.GracefulEarlyExitError.md#message)
2828
- [name](index.GracefulEarlyExitError.md#name)
29+
- [showHelp](index.GracefulEarlyExitError.md#showhelp)
2930
- [stack](index.GracefulEarlyExitError.md#stack)
3031
- [suggestedExitCode](index.GracefulEarlyExitError.md#suggestedexitcode)
3132
- [prepareStackTrace](index.GracefulEarlyExitError.md#preparestacktrace)
@@ -55,7 +56,7 @@ termination of the application but with an exit code indicating success
5556

5657
#### Defined in
5758

58-
[src/error.ts:159](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L159)
59+
[src/error.ts:172](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L172)
5960

6061
## Properties
6162

@@ -69,7 +70,7 @@ termination of the application but with an exit code indicating success
6970

7071
#### Defined in
7172

72-
[src/error.ts:153](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L153)
73+
[src/error.ts:166](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L166)
7374

7475
___
7576

@@ -115,6 +116,20 @@ node_modules/typescript/lib/lib.es5.d.ts:1076
115116

116117
___
117118

119+
### showHelp
120+
121+
**showHelp**: `boolean` = `false`
122+
123+
#### Inherited from
124+
125+
[CliError](index.CliError.md).[showHelp](index.CliError.md#showhelp)
126+
127+
#### Defined in
128+
129+
[src/error.ts:94](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L94)
130+
131+
___
132+
118133
### stack
119134

120135
`Optional` **stack**: `string`
@@ -139,7 +154,7 @@ ___
139154

140155
#### Defined in
141156

142-
[src/error.ts:85](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L85)
157+
[src/error.ts:93](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L93)
143158

144159
___
145160

docs/classes/util.AssertionFailedError.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Represents a failed sanity check.
2424
- [cause](util.AssertionFailedError.md#cause)
2525
- [message](util.AssertionFailedError.md#message)
2626
- [name](util.AssertionFailedError.md#name)
27+
- [showHelp](util.AssertionFailedError.md#showhelp)
2728
- [stack](util.AssertionFailedError.md#stack)
2829
- [suggestedExitCode](util.AssertionFailedError.md#suggestedexitcode)
2930
- [prepareStackTrace](util.AssertionFailedError.md#preparestacktrace)
@@ -57,7 +58,7 @@ Represents a failed sanity check.
5758

5859
#### Defined in
5960

60-
[src/error.ts:175](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L175)
61+
[src/error.ts:188](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L188)
6162

6263
## Properties
6364

@@ -71,7 +72,7 @@ Represents a failed sanity check.
7172

7273
#### Defined in
7374

74-
[src/error.ts:171](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L171)
75+
[src/error.ts:184](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L184)
7576

7677
___
7778

@@ -117,6 +118,20 @@ node_modules/typescript/lib/lib.es5.d.ts:1076
117118

118119
___
119120

121+
### showHelp
122+
123+
**showHelp**: `boolean` = `false`
124+
125+
#### Inherited from
126+
127+
[CliError](index.CliError.md).[showHelp](index.CliError.md#showhelp)
128+
129+
#### Defined in
130+
131+
[src/error.ts:94](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L94)
132+
133+
___
134+
120135
### stack
121136

122137
`Optional` **stack**: `string`
@@ -141,7 +156,7 @@ ___
141156

142157
#### Defined in
143158

144-
[src/error.ts:85](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L85)
159+
[src/error.ts:93](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L93)
145160

146161
___
147162

docs/classes/util.CommandNotImplementedError.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Represents trying to execute a CLI command that has not yet been implemented.
2424
- [cause](util.CommandNotImplementedError.md#cause)
2525
- [message](util.CommandNotImplementedError.md#message)
2626
- [name](util.CommandNotImplementedError.md#name)
27+
- [showHelp](util.CommandNotImplementedError.md#showhelp)
2728
- [stack](util.CommandNotImplementedError.md#stack)
2829
- [suggestedExitCode](util.CommandNotImplementedError.md#suggestedexitcode)
2930
- [prepareStackTrace](util.CommandNotImplementedError.md#preparestacktrace)
@@ -52,7 +53,7 @@ implemented.
5253

5354
#### Defined in
5455

55-
[src/error.ts:137](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L137)
56+
[src/error.ts:150](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L150)
5657

5758
## Properties
5859

@@ -66,7 +67,7 @@ implemented.
6667

6768
#### Defined in
6869

69-
[src/error.ts:132](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L132)
70+
[src/error.ts:145](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L145)
7071

7172
___
7273

@@ -112,6 +113,20 @@ node_modules/typescript/lib/lib.es5.d.ts:1076
112113

113114
___
114115

116+
### showHelp
117+
118+
**showHelp**: `boolean` = `false`
119+
120+
#### Inherited from
121+
122+
[CliError](index.CliError.md).[showHelp](index.CliError.md#showhelp)
123+
124+
#### Defined in
125+
126+
[src/error.ts:94](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L94)
127+
128+
___
129+
115130
### stack
116131

117132
`Optional` **stack**: `string`
@@ -136,7 +151,7 @@ ___
136151

137152
#### Defined in
138153

139-
[src/error.ts:85](https://github.com/Xunnamius/black-flag/blob/4e1a91c/src/error.ts#L85)
154+
[src/error.ts:93](https://github.com/Xunnamius/black-flag/blob/b5a1e58/src/error.ts#L93)
140155

141156
___
142157

0 commit comments

Comments
 (0)