@cmflow/cli 3.4.0-beta.2 → 3.4.0-beta.4

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.
Files changed (101) hide show
  1. package/dist/bin/cm.mjs +1581 -39146
  2. package/dist/bin/cmrelease.mjs +1414 -38776
  3. package/dist/common-DvEL7rzl.mjs +2 -0
  4. package/dist/common-DvEL7rzl.mjs.map +1 -0
  5. package/dist/{compile-packages-BB08_q2B.mjs → compile-packages-Cd19TaUb.mjs} +2 -2
  6. package/dist/{compile-packages-BB08_q2B.mjs.map → compile-packages-Cd19TaUb.mjs.map} +1 -1
  7. package/dist/{docker-clean-tags-EvFdWykP.mjs → docker-clean-tags-C8fsKmA7.mjs} +2 -2
  8. package/dist/{docker-clean-tags-EvFdWykP.mjs.map → docker-clean-tags-C8fsKmA7.mjs.map} +1 -1
  9. package/dist/docker-nm7ubWPx.mjs +34 -0
  10. package/dist/docker-nm7ubWPx.mjs.map +1 -0
  11. package/dist/{docker-publish-CG0aN9se.mjs → docker-publish-CwInm1oK.mjs} +2 -2
  12. package/dist/{docker-publish-CG0aN9se.mjs.map → docker-publish-CwInm1oK.mjs.map} +1 -1
  13. package/dist/{find-packages-611B-66T.mjs → find-packages-CCoDSkVV.mjs} +10 -10
  14. package/dist/{find-packages-611B-66T.mjs.map → find-packages-CCoDSkVV.mjs.map} +1 -1
  15. package/dist/get-config-D9xSS1Lq.mjs +9 -0
  16. package/dist/{get-config-8ivgd1KC.mjs.map → get-config-D9xSS1Lq.mjs.map} +1 -1
  17. package/dist/index-MmHuVKDa.d.mts +266 -0
  18. package/dist/index.d.mts +2088 -0
  19. package/dist/index.mjs +32 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/{npm-VM_GgazT.mjs → npm-BKRyPuCX.mjs} +2 -2
  22. package/dist/{npm-VM_GgazT.mjs.map → npm-BKRyPuCX.mjs.map} +1 -1
  23. package/dist/rolldown-runtime-Csi-cuKc.mjs +1 -0
  24. package/dist/semantic/core/analyze-commits.d.mts +6 -0
  25. package/dist/semantic/core/analyze-commits.mjs +2 -0
  26. package/dist/semantic/core/analyze-commits.mjs.map +1 -0
  27. package/dist/semantic/core/conditional.d.mts +15 -0
  28. package/dist/semantic/core/conditional.mjs +2 -0
  29. package/dist/semantic/core/conditional.mjs.map +1 -0
  30. package/dist/semantic/core/exit.d.mts +6 -0
  31. package/dist/semantic/core/exit.mjs +2 -0
  32. package/dist/semantic/core/exit.mjs.map +1 -0
  33. package/dist/semantic/core/prepare/artifacts.d.mts +6 -0
  34. package/dist/semantic/core/prepare/artifacts.mjs +2 -0
  35. package/dist/semantic/core/prepare/artifacts.mjs.map +1 -0
  36. package/dist/semantic/core/prepare/bump-version.d.mts +6 -0
  37. package/dist/semantic/core/prepare/bump-version.mjs +2 -0
  38. package/dist/semantic/core/prepare/bump-version.mjs.map +1 -0
  39. package/dist/semantic/core/prepare/commit.d.mts +6 -0
  40. package/dist/semantic/core/prepare/commit.mjs +2 -0
  41. package/dist/semantic/core/prepare/commit.mjs.map +1 -0
  42. package/dist/semantic/core/prepare/release-info.d.mts +8 -0
  43. package/dist/semantic/core/prepare/release-info.mjs +2 -0
  44. package/dist/semantic/core/prepare/release-info.mjs.map +1 -0
  45. package/dist/semantic/core/publish-packages.d.mts +10 -0
  46. package/dist/semantic/core/publish-packages.mjs +5 -0
  47. package/dist/semantic/core/publish-packages.mjs.map +1 -0
  48. package/dist/semantic/core/push-release.d.mts +7 -0
  49. package/dist/semantic/core/push-release.mjs +2 -0
  50. package/dist/semantic/core/push-release.mjs.map +1 -0
  51. package/dist/semantic/core/run.d.mts +13 -0
  52. package/dist/semantic/core/run.mjs +2 -0
  53. package/dist/semantic/core/run.mjs.map +1 -0
  54. package/dist/semantic/core/sync-repository.d.mts +6 -0
  55. package/dist/semantic/core/sync-repository.mjs +2 -0
  56. package/dist/semantic/core/sync-repository.mjs.map +1 -0
  57. package/dist/semantic/core/verify-conditions.d.mts +6 -0
  58. package/dist/semantic/core/verify-conditions.mjs +2 -0
  59. package/dist/semantic/core/verify-conditions.mjs.map +1 -0
  60. package/dist/semantic/core/verify-release.d.mts +6 -0
  61. package/dist/semantic/core/verify-release.mjs +2 -0
  62. package/dist/semantic/core/verify-release.mjs.map +1 -0
  63. package/dist/semantic/docker/publish.d.mts +6 -0
  64. package/dist/semantic/docker/publish.mjs +2 -0
  65. package/dist/semantic/docker/publish.mjs.map +1 -0
  66. package/dist/semantic/docker/success.d.mts +6 -0
  67. package/dist/semantic/docker/success.mjs +2 -0
  68. package/dist/semantic/docker/success.mjs.map +1 -0
  69. package/dist/semver-Bgw8dAW8.mjs +2 -0
  70. package/dist/{semver-DFjVbN1S.mjs.map → semver-Bgw8dAW8.mjs.map} +1 -1
  71. package/dist/source-CHDdP5eQ.mjs +7 -0
  72. package/dist/{source-CwLcYLzI.mjs.map → source-CHDdP5eQ.mjs.map} +1 -1
  73. package/dist/{write-package-cxki9d3K.mjs → write-package-z7IDmENp.mjs} +6 -6
  74. package/dist/{write-package-cxki9d3K.mjs.map → write-package-z7IDmENp.mjs.map} +1 -1
  75. package/dist/{write-packages-CxCAl_AG.mjs → write-packages--jWqJCd-.mjs} +2 -2
  76. package/dist/{write-packages-CxCAl_AG.mjs.map → write-packages--jWqJCd-.mjs.map} +1 -1
  77. package/package.json +17 -8
  78. package/dist/cli-truncate-Bi2MjGwF.mjs +0 -323
  79. package/dist/cli-truncate-DMcpM5Q7.mjs +0 -2
  80. package/dist/cli-truncate-DMcpM5Q7.mjs.map +0 -1
  81. package/dist/cli-truncate-DsW0mgI_.mjs +0 -323
  82. package/dist/common-BdfXquG0.mjs +0 -61
  83. package/dist/common-BdfXquG0.mjs.map +0 -1
  84. package/dist/docker-Cc30aRzl.mjs +0 -34
  85. package/dist/docker-Cc30aRzl.mjs.map +0 -1
  86. package/dist/get-config-8ivgd1KC.mjs +0 -9
  87. package/dist/get-east-asian-width-Tfn8qoqd.mjs +0 -2
  88. package/dist/get-east-asian-width-Tfn8qoqd.mjs.map +0 -1
  89. package/dist/get-east-asian-width-wiVWCFXf.mjs +0 -682
  90. package/dist/log-update-CLbF3iV6.mjs +0 -6
  91. package/dist/log-update-CLbF3iV6.mjs.map +0 -1
  92. package/dist/log-update-CTXRtajW.mjs +0 -668
  93. package/dist/log-update-Dy1vPMGY.mjs +0 -668
  94. package/dist/rolldown-runtime-B4iAMlE-.mjs +0 -35
  95. package/dist/semver-DFjVbN1S.mjs +0 -2
  96. package/dist/source-CwLcYLzI.mjs +0 -7
  97. package/dist/wrap-ansi-9ugahFCy.mjs +0 -9
  98. package/dist/wrap-ansi-9ugahFCy.mjs.map +0 -1
  99. package/dist/wrap-ansi-BRr0GA6g.mjs +0 -330
  100. package/dist/wrap-ansi-Cupoo4Yg.mjs +0 -330
  101. package/dist/wrap-ansi-dwgEjNWf.mjs +0 -2
@@ -0,0 +1,2088 @@
1
+ /// <reference path="operators/index.d.ts" />
2
+ /// <reference path="testing/index.d.ts" />
3
+ /// <reference types="node"/>
4
+ import { c as getConfig, i as CmContext, l as PackageJson, n as CommandConstructor, o as CliConfig, r as ICommand, s as getCI, t as CmTask } from "./index-MmHuVKDa.mjs";
5
+ import { ChildProcess } from "child_process";
6
+ import { Readable, Stream } from "stream";
7
+ //#region ../../node_modules/commander/typings/index.d.ts
8
+ // Type definitions for commander
9
+ // Original definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <https://github.com/mdezem>, vvakame <https://github.com/vvakame>, Jules Randolph <https://github.com/sveinburne>
10
+ // Using method rather than property for method-signature-style, to document method overloads separately. Allow either.
11
+ /* eslint-disable @typescript-eslint/method-signature-style */
12
+ /* eslint-disable @typescript-eslint/no-explicit-any */
13
+ // This is a trick to encourage editor to suggest the known literals while still
14
+ // allowing any BaseType value.
15
+ // References:
16
+ // - https://github.com/microsoft/TypeScript/issues/29729
17
+ // - https://github.com/sindresorhus/type-fest/blob/main/source/literal-union.d.ts
18
+ // - https://github.com/sindresorhus/type-fest/blob/main/source/primitive.d.ts
19
+ type LiteralUnion<LiteralType, BaseType extends string | number> = LiteralType | (BaseType & Record<never, never>);
20
+ declare class CommanderError extends Error {
21
+ code: string;
22
+ exitCode: number;
23
+ message: string;
24
+ nestedError?: string;
25
+ /**
26
+ * Constructs the CommanderError class
27
+ * @param exitCode - suggested exit code which could be used with process.exit
28
+ * @param code - an id string representing the error
29
+ * @param message - human-readable description of the error
30
+ */
31
+ constructor(exitCode: number, code: string, message: string);
32
+ }
33
+ interface ErrorOptions {
34
+ // optional parameter for error()
35
+ /** an id string representing the error */
36
+ code?: string;
37
+ /** suggested exit code which could be used with process.exit */
38
+ exitCode?: number;
39
+ }
40
+ declare class Argument {
41
+ description: string;
42
+ required: boolean;
43
+ variadic: boolean;
44
+ defaultValue?: any;
45
+ defaultValueDescription?: string;
46
+ argChoices?: string[];
47
+ /**
48
+ * Initialize a new command argument with the given name and description.
49
+ * The default is that the argument is required, and you can explicitly
50
+ * indicate this with <> around the name. Put [] around the name for an optional argument.
51
+ */
52
+ constructor(arg: string, description?: string);
53
+ /**
54
+ * Return argument name.
55
+ */
56
+ name(): string;
57
+ /**
58
+ * Set the default value, and optionally supply the description to be displayed in the help.
59
+ */
60
+ default(value: unknown, description?: string): this;
61
+ /**
62
+ * Set the custom handler for processing CLI command arguments into argument values.
63
+ */
64
+ argParser<T>(fn: (value: string, previous: T) => T): this;
65
+ /**
66
+ * Only allow argument value to be one of choices.
67
+ */
68
+ choices(values: readonly string[]): this;
69
+ /**
70
+ * Make argument required.
71
+ */
72
+ argRequired(): this;
73
+ /**
74
+ * Make argument optional.
75
+ */
76
+ argOptional(): this;
77
+ }
78
+ declare class Option {
79
+ flags: string;
80
+ description: string;
81
+ required: boolean; // A value must be supplied when the option is specified.
82
+ optional: boolean; // A value is optional when the option is specified.
83
+ variadic: boolean;
84
+ mandatory: boolean; // The option must have a value after parsing, which usually means it must be specified on command line.
85
+ short?: string;
86
+ long?: string;
87
+ negate: boolean;
88
+ defaultValue?: any;
89
+ defaultValueDescription?: string;
90
+ presetArg?: unknown;
91
+ envVar?: string;
92
+ parseArg?: <T>(value: string, previous: T) => T;
93
+ hidden: boolean;
94
+ argChoices?: string[];
95
+ constructor(flags: string, description?: string);
96
+ /**
97
+ * Set the default value, and optionally supply the description to be displayed in the help.
98
+ */
99
+ default(value: unknown, description?: string): this;
100
+ /**
101
+ * Preset to use when option used without option-argument, especially optional but also boolean and negated.
102
+ * The custom processing (parseArg) is called.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * new Option('--color').default('GREYSCALE').preset('RGB');
107
+ * new Option('--donate [amount]').preset('20').argParser(parseFloat);
108
+ * ```
109
+ */
110
+ preset(arg: unknown): this;
111
+ /**
112
+ * Add option name(s) that conflict with this option.
113
+ * An error will be displayed if conflicting options are found during parsing.
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * new Option('--rgb').conflicts('cmyk');
118
+ * new Option('--js').conflicts(['ts', 'jsx']);
119
+ * ```
120
+ */
121
+ conflicts(names: string | string[]): this;
122
+ /**
123
+ * Specify implied option values for when this option is set and the implied options are not.
124
+ *
125
+ * The custom processing (parseArg) is not called on the implied values.
126
+ *
127
+ * @example
128
+ * program
129
+ * .addOption(new Option('--log', 'write logging information to file'))
130
+ * .addOption(new Option('--trace', 'log extra details').implies({ log: 'trace.txt' }));
131
+ */
132
+ implies(optionValues: OptionValues): this;
133
+ /**
134
+ * Set environment variable to check for option value.
135
+ *
136
+ * An environment variables is only used if when processed the current option value is
137
+ * undefined, or the source of the current value is 'default' or 'config' or 'env'.
138
+ */
139
+ env(name: string): this;
140
+ /**
141
+ * Set the custom handler for processing CLI option arguments into option values.
142
+ */
143
+ argParser<T>(fn: (value: string, previous: T) => T): this;
144
+ /**
145
+ * Whether the option is mandatory and must have a value after parsing.
146
+ */
147
+ makeOptionMandatory(mandatory?: boolean): this;
148
+ /**
149
+ * Hide option in help.
150
+ */
151
+ hideHelp(hide?: boolean): this;
152
+ /**
153
+ * Only allow option value to be one of choices.
154
+ */
155
+ choices(values: readonly string[]): this;
156
+ /**
157
+ * Return option name.
158
+ */
159
+ name(): string;
160
+ /**
161
+ * Return option name, in a camelcase format that can be used
162
+ * as a object attribute key.
163
+ */
164
+ attributeName(): string;
165
+ /**
166
+ * Return whether a boolean option.
167
+ *
168
+ * Options are one of boolean, negated, required argument, or optional argument.
169
+ */
170
+ isBoolean(): boolean;
171
+ }
172
+ declare class Help {
173
+ /** output helpWidth, long lines are wrapped to fit */
174
+ helpWidth?: number;
175
+ sortSubcommands: boolean;
176
+ sortOptions: boolean;
177
+ showGlobalOptions: boolean;
178
+ constructor();
179
+ /** Get the command term to show in the list of subcommands. */
180
+ subcommandTerm(cmd: Command): string;
181
+ /** Get the command summary to show in the list of subcommands. */
182
+ subcommandDescription(cmd: Command): string;
183
+ /** Get the option term to show in the list of options. */
184
+ optionTerm(option: Option): string;
185
+ /** Get the option description to show in the list of options. */
186
+ optionDescription(option: Option): string;
187
+ /** Get the argument term to show in the list of arguments. */
188
+ argumentTerm(argument: Argument): string;
189
+ /** Get the argument description to show in the list of arguments. */
190
+ argumentDescription(argument: Argument): string;
191
+ /** Get the command usage to be displayed at the top of the built-in help. */
192
+ commandUsage(cmd: Command): string;
193
+ /** Get the description for the command. */
194
+ commandDescription(cmd: Command): string;
195
+ /** Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one. */
196
+ visibleCommands(cmd: Command): Command[];
197
+ /** Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one. */
198
+ visibleOptions(cmd: Command): Option[];
199
+ /** Get an array of the visible global options. (Not including help.) */
200
+ visibleGlobalOptions(cmd: Command): Option[];
201
+ /** Get an array of the arguments which have descriptions. */
202
+ visibleArguments(cmd: Command): Argument[];
203
+ /** Get the longest command term length. */
204
+ longestSubcommandTermLength(cmd: Command, helper: Help): number;
205
+ /** Get the longest option term length. */
206
+ longestOptionTermLength(cmd: Command, helper: Help): number;
207
+ /** Get the longest global option term length. */
208
+ longestGlobalOptionTermLength(cmd: Command, helper: Help): number;
209
+ /** Get the longest argument term length. */
210
+ longestArgumentTermLength(cmd: Command, helper: Help): number;
211
+ /** Calculate the pad width from the maximum term length. */
212
+ padWidth(cmd: Command, helper: Help): number;
213
+ /**
214
+ * Wrap the given string to width characters per line, with lines after the first indented.
215
+ * Do not wrap if insufficient room for wrapping (minColumnWidth), or string is manually formatted.
216
+ */
217
+ wrap(str: string, width: number, indent: number, minColumnWidth?: number): string;
218
+ /** Generate the built-in help text. */
219
+ formatHelp(cmd: Command, helper: Help): string;
220
+ }
221
+ type HelpConfiguration = Partial<Help>;
222
+ interface ParseOptions {
223
+ from: 'node' | 'electron' | 'user';
224
+ }
225
+ interface HelpContext {
226
+ // optional parameter for .help() and .outputHelp()
227
+ error: boolean;
228
+ }
229
+ interface AddHelpTextContext {
230
+ // passed to text function used with .addHelpText()
231
+ error: boolean;
232
+ command: Command;
233
+ }
234
+ interface OutputConfiguration {
235
+ writeOut?(str: string): void;
236
+ writeErr?(str: string): void;
237
+ getOutHelpWidth?(): number;
238
+ getErrHelpWidth?(): number;
239
+ outputError?(str: string, write: (str: string) => void): void;
240
+ }
241
+ type AddHelpTextPosition = 'beforeAll' | 'before' | 'after' | 'afterAll';
242
+ type HookEvent = 'preSubcommand' | 'preAction' | 'postAction';
243
+ // The source is a string so author can define their own too.
244
+ type OptionValueSource = LiteralUnion<'default' | 'config' | 'env' | 'cli' | 'implied', string> | undefined;
245
+ type OptionValues = Record<string, any>;
246
+ declare class Command {
247
+ args: string[];
248
+ processedArgs: any[];
249
+ readonly commands: readonly Command[];
250
+ readonly options: readonly Option[];
251
+ readonly registeredArguments: readonly Argument[];
252
+ parent: Command | null;
253
+ constructor(name?: string);
254
+ /**
255
+ * Set the program version to `str`.
256
+ *
257
+ * This method auto-registers the "-V, --version" flag
258
+ * which will print the version number when passed.
259
+ *
260
+ * You can optionally supply the flags and description to override the defaults.
261
+ */
262
+ version(str: string, flags?: string, description?: string): this;
263
+ /**
264
+ * Get the program version.
265
+ */
266
+ version(): string | undefined;
267
+ /**
268
+ * Define a command, implemented using an action handler.
269
+ *
270
+ * @remarks
271
+ * The command description is supplied using `.description`, not as a parameter to `.command`.
272
+ *
273
+ * @example
274
+ * ```ts
275
+ * program
276
+ * .command('clone <source> [destination]')
277
+ * .description('clone a repository into a newly created directory')
278
+ * .action((source, destination) => {
279
+ * console.log('clone command called');
280
+ * });
281
+ * ```
282
+ *
283
+ * @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
284
+ * @param opts - configuration options
285
+ * @returns new command
286
+ */
287
+ command(nameAndArgs: string, opts?: CommandOptions): ReturnType<this['createCommand']>;
288
+ /**
289
+ * Define a command, implemented in a separate executable file.
290
+ *
291
+ * @remarks
292
+ * The command description is supplied as the second parameter to `.command`.
293
+ *
294
+ * @example
295
+ * ```ts
296
+ * program
297
+ * .command('start <service>', 'start named service')
298
+ * .command('stop [service]', 'stop named service, or all if no name supplied');
299
+ * ```
300
+ *
301
+ * @param nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
302
+ * @param description - description of executable command
303
+ * @param opts - configuration options
304
+ * @returns `this` command for chaining
305
+ */
306
+ command(nameAndArgs: string, description: string, opts?: ExecutableCommandOptions): this;
307
+ /**
308
+ * Factory routine to create a new unattached command.
309
+ *
310
+ * See .command() for creating an attached subcommand, which uses this routine to
311
+ * create the command. You can override createCommand to customise subcommands.
312
+ */
313
+ createCommand(name?: string): Command;
314
+ /**
315
+ * Add a prepared subcommand.
316
+ *
317
+ * See .command() for creating an attached subcommand which inherits settings from its parent.
318
+ *
319
+ * @returns `this` command for chaining
320
+ */
321
+ addCommand(cmd: Command, opts?: CommandOptions): this;
322
+ /**
323
+ * Factory routine to create a new unattached argument.
324
+ *
325
+ * See .argument() for creating an attached argument, which uses this routine to
326
+ * create the argument. You can override createArgument to return a custom argument.
327
+ */
328
+ createArgument(name: string, description?: string): Argument;
329
+ /**
330
+ * Define argument syntax for command.
331
+ *
332
+ * The default is that the argument is required, and you can explicitly
333
+ * indicate this with <> around the name. Put [] around the name for an optional argument.
334
+ *
335
+ * @example
336
+ * ```
337
+ * program.argument('<input-file>');
338
+ * program.argument('[output-file]');
339
+ * ```
340
+ *
341
+ * @returns `this` command for chaining
342
+ */
343
+ argument<T>(flags: string, description: string, fn: (value: string, previous: T) => T, defaultValue?: T): this;
344
+ argument(name: string, description?: string, defaultValue?: unknown): this;
345
+ /**
346
+ * Define argument syntax for command, adding a prepared argument.
347
+ *
348
+ * @returns `this` command for chaining
349
+ */
350
+ addArgument(arg: Argument): this;
351
+ /**
352
+ * Define argument syntax for command, adding multiple at once (without descriptions).
353
+ *
354
+ * See also .argument().
355
+ *
356
+ * @example
357
+ * ```
358
+ * program.arguments('<cmd> [env]');
359
+ * ```
360
+ *
361
+ * @returns `this` command for chaining
362
+ */
363
+ arguments(names: string): this;
364
+ /**
365
+ * Customise or override default help command. By default a help command is automatically added if your command has subcommands.
366
+ *
367
+ * @example
368
+ * ```ts
369
+ * program.helpCommand('help [cmd]');
370
+ * program.helpCommand('help [cmd]', 'show help');
371
+ * program.helpCommand(false); // suppress default help command
372
+ * program.helpCommand(true); // add help command even if no subcommands
373
+ * ```
374
+ */
375
+ helpCommand(nameAndArgs: string, description?: string): this;
376
+ helpCommand(enable: boolean): this;
377
+ /**
378
+ * Add prepared custom help command.
379
+ */
380
+ addHelpCommand(cmd: Command): this;
381
+ /** @deprecated since v12, instead use helpCommand */
382
+ addHelpCommand(nameAndArgs: string, description?: string): this;
383
+ /** @deprecated since v12, instead use helpCommand */
384
+ addHelpCommand(enable?: boolean): this;
385
+ /**
386
+ * Add hook for life cycle event.
387
+ */
388
+ hook(event: HookEvent, listener: (thisCommand: Command, actionCommand: Command) => void | Promise<void>): this;
389
+ /**
390
+ * Register callback to use as replacement for calling process.exit.
391
+ */
392
+ exitOverride(callback?: (err: CommanderError) => never | void): this;
393
+ /**
394
+ * Display error message and exit (or call exitOverride).
395
+ */
396
+ error(message: string, errorOptions?: ErrorOptions): never;
397
+ /**
398
+ * You can customise the help with a subclass of Help by overriding createHelp,
399
+ * or by overriding Help properties using configureHelp().
400
+ */
401
+ createHelp(): Help;
402
+ /**
403
+ * You can customise the help by overriding Help properties using configureHelp(),
404
+ * or with a subclass of Help by overriding createHelp().
405
+ */
406
+ configureHelp(configuration: HelpConfiguration): this;
407
+ /** Get configuration */
408
+ configureHelp(): HelpConfiguration;
409
+ /**
410
+ * The default output goes to stdout and stderr. You can customise this for special
411
+ * applications. You can also customise the display of errors by overriding outputError.
412
+ *
413
+ * The configuration properties are all functions:
414
+ * ```
415
+ * // functions to change where being written, stdout and stderr
416
+ * writeOut(str)
417
+ * writeErr(str)
418
+ * // matching functions to specify width for wrapping help
419
+ * getOutHelpWidth()
420
+ * getErrHelpWidth()
421
+ * // functions based on what is being written out
422
+ * outputError(str, write) // used for displaying errors, and not used for displaying help
423
+ * ```
424
+ */
425
+ configureOutput(configuration: OutputConfiguration): this;
426
+ /** Get configuration */
427
+ configureOutput(): OutputConfiguration;
428
+ /**
429
+ * Copy settings that are useful to have in common across root command and subcommands.
430
+ *
431
+ * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.)
432
+ */
433
+ copyInheritedSettings(sourceCommand: Command): this;
434
+ /**
435
+ * Display the help or a custom message after an error occurs.
436
+ */
437
+ showHelpAfterError(displayHelp?: boolean | string): this;
438
+ /**
439
+ * Display suggestion of similar commands for unknown commands, or options for unknown options.
440
+ */
441
+ showSuggestionAfterError(displaySuggestion?: boolean): this;
442
+ /**
443
+ * Register callback `fn` for the command.
444
+ *
445
+ * @example
446
+ * ```
447
+ * program
448
+ * .command('serve')
449
+ * .description('start service')
450
+ * .action(function() {
451
+ * // do work here
452
+ * });
453
+ * ```
454
+ *
455
+ * @returns `this` command for chaining
456
+ */
457
+ action(fn: (...args: any[]) => void | Promise<void>): this;
458
+ /**
459
+ * Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both.
460
+ *
461
+ * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required
462
+ * option-argument is indicated by `<>` and an optional option-argument by `[]`.
463
+ *
464
+ * See the README for more details, and see also addOption() and requiredOption().
465
+ *
466
+ * @example
467
+ *
468
+ * ```js
469
+ * program
470
+ * .option('-p, --pepper', 'add pepper')
471
+ * .option('-p, --pizza-type <TYPE>', 'type of pizza') // required option-argument
472
+ * .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default
473
+ * .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function
474
+ * ```
475
+ *
476
+ * @returns `this` command for chaining
477
+ */
478
+ option(flags: string, description?: string, defaultValue?: string | boolean | string[]): this;
479
+ option<T>(flags: string, description: string, parseArg: (value: string, previous: T) => T, defaultValue?: T): this;
480
+ /** @deprecated since v7, instead use choices or a custom function */
481
+ option(flags: string, description: string, regexp: RegExp, defaultValue?: string | boolean | string[]): this;
482
+ /**
483
+ * Define a required option, which must have a value after parsing. This usually means
484
+ * the option must be specified on the command line. (Otherwise the same as .option().)
485
+ *
486
+ * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
487
+ */
488
+ requiredOption(flags: string, description?: string, defaultValue?: string | boolean | string[]): this;
489
+ requiredOption<T>(flags: string, description: string, parseArg: (value: string, previous: T) => T, defaultValue?: T): this;
490
+ /** @deprecated since v7, instead use choices or a custom function */
491
+ requiredOption(flags: string, description: string, regexp: RegExp, defaultValue?: string | boolean | string[]): this;
492
+ /**
493
+ * Factory routine to create a new unattached option.
494
+ *
495
+ * See .option() for creating an attached option, which uses this routine to
496
+ * create the option. You can override createOption to return a custom option.
497
+ */
498
+ createOption(flags: string, description?: string): Option;
499
+ /**
500
+ * Add a prepared Option.
501
+ *
502
+ * See .option() and .requiredOption() for creating and attaching an option in a single call.
503
+ */
504
+ addOption(option: Option): this;
505
+ /**
506
+ * Whether to store option values as properties on command object,
507
+ * or store separately (specify false). In both cases the option values can be accessed using .opts().
508
+ *
509
+ * @returns `this` command for chaining
510
+ */
511
+ storeOptionsAsProperties<T extends OptionValues>(): this & T;
512
+ storeOptionsAsProperties<T extends OptionValues>(storeAsProperties: true): this & T;
513
+ storeOptionsAsProperties(storeAsProperties?: boolean): this;
514
+ /**
515
+ * Retrieve option value.
516
+ */
517
+ getOptionValue(key: string): any;
518
+ /**
519
+ * Store option value.
520
+ */
521
+ setOptionValue(key: string, value: unknown): this;
522
+ /**
523
+ * Store option value and where the value came from.
524
+ */
525
+ setOptionValueWithSource(key: string, value: unknown, source: OptionValueSource): this;
526
+ /**
527
+ * Get source of option value.
528
+ */
529
+ getOptionValueSource(key: string): OptionValueSource | undefined;
530
+ /**
531
+ * Get source of option value. See also .optsWithGlobals().
532
+ */
533
+ getOptionValueSourceWithGlobals(key: string): OptionValueSource | undefined;
534
+ /**
535
+ * Alter parsing of short flags with optional values.
536
+ *
537
+ * @example
538
+ * ```
539
+ * // for `.option('-f,--flag [value]'):
540
+ * .combineFlagAndOptionalValue(true) // `-f80` is treated like `--flag=80`, this is the default behaviour
541
+ * .combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b`
542
+ * ```
543
+ *
544
+ * @returns `this` command for chaining
545
+ */
546
+ combineFlagAndOptionalValue(combine?: boolean): this;
547
+ /**
548
+ * Allow unknown options on the command line.
549
+ *
550
+ * @returns `this` command for chaining
551
+ */
552
+ allowUnknownOption(allowUnknown?: boolean): this;
553
+ /**
554
+ * Allow excess command-arguments on the command line. Pass false to make excess arguments an error.
555
+ *
556
+ * @returns `this` command for chaining
557
+ */
558
+ allowExcessArguments(allowExcess?: boolean): this;
559
+ /**
560
+ * Enable positional options. Positional means global options are specified before subcommands which lets
561
+ * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions.
562
+ *
563
+ * The default behaviour is non-positional and global options may appear anywhere on the command line.
564
+ *
565
+ * @returns `this` command for chaining
566
+ */
567
+ enablePositionalOptions(positional?: boolean): this;
568
+ /**
569
+ * Pass through options that come after command-arguments rather than treat them as command-options,
570
+ * so actual command-options come before command-arguments. Turning this on for a subcommand requires
571
+ * positional options to have been enabled on the program (parent commands).
572
+ *
573
+ * The default behaviour is non-positional and options may appear before or after command-arguments.
574
+ *
575
+ * @returns `this` command for chaining
576
+ */
577
+ passThroughOptions(passThrough?: boolean): this;
578
+ /**
579
+ * Parse `argv`, setting options and invoking commands when defined.
580
+ *
581
+ * Use parseAsync instead of parse if any of your action handlers are async.
582
+ *
583
+ * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
584
+ *
585
+ * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
586
+ * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
587
+ * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
588
+ * - `'user'`: just user arguments
589
+ *
590
+ * @example
591
+ * ```
592
+ * program.parse(); // parse process.argv and auto-detect electron and special node flags
593
+ * program.parse(process.argv); // assume argv[0] is app and argv[1] is script
594
+ * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
595
+ * ```
596
+ *
597
+ * @returns `this` command for chaining
598
+ */
599
+ parse(argv?: readonly string[], parseOptions?: ParseOptions): this;
600
+ /**
601
+ * Parse `argv`, setting options and invoking commands when defined.
602
+ *
603
+ * Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!
604
+ *
605
+ * Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:
606
+ * - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that
607
+ * - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged
608
+ * - `'user'`: just user arguments
609
+ *
610
+ * @example
611
+ * ```
612
+ * await program.parseAsync(); // parse process.argv and auto-detect electron and special node flags
613
+ * await program.parseAsync(process.argv); // assume argv[0] is app and argv[1] is script
614
+ * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
615
+ * ```
616
+ *
617
+ * @returns Promise
618
+ */
619
+ parseAsync(argv?: readonly string[], parseOptions?: ParseOptions): Promise<this>;
620
+ /**
621
+ * Parse options from `argv` removing known options,
622
+ * and return argv split into operands and unknown arguments.
623
+ *
624
+ * argv => operands, unknown
625
+ * --known kkk op => [op], []
626
+ * op --known kkk => [op], []
627
+ * sub --unknown uuu op => [sub], [--unknown uuu op]
628
+ * sub -- --unknown uuu op => [sub --unknown uuu op], []
629
+ */
630
+ parseOptions(argv: string[]): ParseOptionsResult;
631
+ /**
632
+ * Return an object containing local option values as key-value pairs
633
+ */
634
+ opts<T extends OptionValues>(): T;
635
+ /**
636
+ * Return an object containing merged local and global option values as key-value pairs.
637
+ */
638
+ optsWithGlobals<T extends OptionValues>(): T;
639
+ /**
640
+ * Set the description.
641
+ *
642
+ * @returns `this` command for chaining
643
+ */
644
+ description(str: string): this;
645
+ /** @deprecated since v8, instead use .argument to add command argument with description */
646
+ description(str: string, argsDescription: Record<string, string>): this;
647
+ /**
648
+ * Get the description.
649
+ */
650
+ description(): string;
651
+ /**
652
+ * Set the summary. Used when listed as subcommand of parent.
653
+ *
654
+ * @returns `this` command for chaining
655
+ */
656
+ summary(str: string): this;
657
+ /**
658
+ * Get the summary.
659
+ */
660
+ summary(): string;
661
+ /**
662
+ * Set an alias for the command.
663
+ *
664
+ * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help.
665
+ *
666
+ * @returns `this` command for chaining
667
+ */
668
+ alias(alias: string): this;
669
+ /**
670
+ * Get alias for the command.
671
+ */
672
+ alias(): string;
673
+ /**
674
+ * Set aliases for the command.
675
+ *
676
+ * Only the first alias is shown in the auto-generated help.
677
+ *
678
+ * @returns `this` command for chaining
679
+ */
680
+ aliases(aliases: readonly string[]): this;
681
+ /**
682
+ * Get aliases for the command.
683
+ */
684
+ aliases(): string[];
685
+ /**
686
+ * Set the command usage.
687
+ *
688
+ * @returns `this` command for chaining
689
+ */
690
+ usage(str: string): this;
691
+ /**
692
+ * Get the command usage.
693
+ */
694
+ usage(): string;
695
+ /**
696
+ * Set the name of the command.
697
+ *
698
+ * @returns `this` command for chaining
699
+ */
700
+ name(str: string): this;
701
+ /**
702
+ * Get the name of the command.
703
+ */
704
+ name(): string;
705
+ /**
706
+ * Set the name of the command from script filename, such as process.argv[1],
707
+ * or require.main.filename, or __filename.
708
+ *
709
+ * (Used internally and public although not documented in README.)
710
+ *
711
+ * @example
712
+ * ```ts
713
+ * program.nameFromFilename(require.main.filename);
714
+ * ```
715
+ *
716
+ * @returns `this` command for chaining
717
+ */
718
+ nameFromFilename(filename: string): this;
719
+ /**
720
+ * Set the directory for searching for executable subcommands of this command.
721
+ *
722
+ * @example
723
+ * ```ts
724
+ * program.executableDir(__dirname);
725
+ * // or
726
+ * program.executableDir('subcommands');
727
+ * ```
728
+ *
729
+ * @returns `this` command for chaining
730
+ */
731
+ executableDir(path: string): this;
732
+ /**
733
+ * Get the executable search directory.
734
+ */
735
+ executableDir(): string | null;
736
+ /**
737
+ * Output help information for this command.
738
+ *
739
+ * Outputs built-in help, and custom text added using `.addHelpText()`.
740
+ *
741
+ */
742
+ outputHelp(context?: HelpContext): void;
743
+ /** @deprecated since v7 */
744
+ outputHelp(cb?: (str: string) => string): void;
745
+ /**
746
+ * Return command help documentation.
747
+ */
748
+ helpInformation(context?: HelpContext): string;
749
+ /**
750
+ * You can pass in flags and a description to override the help
751
+ * flags and help description for your command. Pass in false
752
+ * to disable the built-in help option.
753
+ */
754
+ helpOption(flags?: string | boolean, description?: string): this;
755
+ /**
756
+ * Supply your own option to use for the built-in help option.
757
+ * This is an alternative to using helpOption() to customise the flags and description etc.
758
+ */
759
+ addHelpOption(option: Option): this;
760
+ /**
761
+ * Output help information and exit.
762
+ *
763
+ * Outputs built-in help, and custom text added using `.addHelpText()`.
764
+ */
765
+ help(context?: HelpContext): never;
766
+ /** @deprecated since v7 */
767
+ help(cb?: (str: string) => string): never;
768
+ /**
769
+ * Add additional text to be displayed with the built-in help.
770
+ *
771
+ * Position is 'before' or 'after' to affect just this command,
772
+ * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.
773
+ */
774
+ addHelpText(position: AddHelpTextPosition, text: string): this;
775
+ addHelpText(position: AddHelpTextPosition, text: (context: AddHelpTextContext) => string): this;
776
+ /**
777
+ * Add a listener (callback) for when events occur. (Implemented using EventEmitter.)
778
+ */
779
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
780
+ }
781
+ interface CommandOptions {
782
+ hidden?: boolean;
783
+ isDefault?: boolean;
784
+ /** @deprecated since v7, replaced by hidden */
785
+ noHelp?: boolean;
786
+ }
787
+ interface ExecutableCommandOptions extends CommandOptions {
788
+ executableFile?: string;
789
+ }
790
+ interface ParseOptionsResult {
791
+ operands: string[];
792
+ unknown: string[];
793
+ }
794
+ //#endregion
795
+ //#region src/commands/checkfeatures.d.ts
796
+ interface CheckfeaturesOpts {
797
+ verbose?: number;
798
+ }
799
+ declare class Checkfeatures implements ICommand {
800
+ mapContext(_opts: CheckfeaturesOpts, context: CmContext): CmContext;
801
+ getTasks(context: CmContext): CmTask[];
802
+ success(): void;
803
+ }
804
+ //#endregion
805
+ //#region src/commands/clean.d.ts
806
+ interface CleanOpts {
807
+ verbose?: number;
808
+ }
809
+ declare class Clean implements ICommand {
810
+ mapContext(_opts: CleanOpts, context: CmContext): CmContext;
811
+ getTasks(context: CmContext): CmTask[];
812
+ success(): void;
813
+ }
814
+ //#endregion
815
+ //#region src/commands/config.d.ts
816
+ interface ConfigOpts {
817
+ verbose?: number;
818
+ }
819
+ declare class Config implements ICommand {
820
+ mapContext(_opts: ConfigOpts, context: CmContext): CmContext;
821
+ getTasks(context: CmContext): CmTask[];
822
+ }
823
+ //#endregion
824
+ //#region src/commands/deploy.d.ts
825
+ interface DeployOpts {
826
+ target?: string;
827
+ verbose?: number;
828
+ }
829
+ declare class Deploy implements ICommand {
830
+ mapContext(commander: DeployOpts, context: CmContext): CmContext;
831
+ getTasks(context: CmContext): CmTask[];
832
+ success(): void;
833
+ }
834
+ //#endregion
835
+ //#region src/commands/fetch.d.ts
836
+ interface FetchOpts {
837
+ dryRun?: boolean;
838
+ verbose?: number;
839
+ }
840
+ declare class Fetch implements ICommand {
841
+ mapContext(_opts: FetchOpts, context: CmContext): CmContext;
842
+ getTasks(context: CmContext): CmTask[];
843
+ success(context: CmContext): void;
844
+ }
845
+ //#endregion
846
+ //#region src/commands/rebase.d.ts
847
+ interface RebaseOpts {
848
+ unitTest?: number;
849
+ cucumber?: number;
850
+ force?: number;
851
+ verbose?: number;
852
+ }
853
+ declare class Rebase extends Fetch implements ICommand {
854
+ mapContext(commander: RebaseOpts, context: CmContext): CmContext;
855
+ getTasks(context: CmContext): CmTask[];
856
+ success(context: CmContext): void;
857
+ }
858
+ //#endregion
859
+ //#region ../../node_modules/rxjs/dist/types/internal/Subscription.d.ts
860
+ /**
861
+ * Represents a disposable resource, such as the execution of an Observable. A
862
+ * Subscription has one important method, `unsubscribe`, that takes no argument
863
+ * and just disposes the resource held by the subscription.
864
+ *
865
+ * Additionally, subscriptions may be grouped together through the `add()`
866
+ * method, which will attach a child Subscription to the current Subscription.
867
+ * When a Subscription is unsubscribed, all its children (and its grandchildren)
868
+ * will be unsubscribed as well.
869
+ *
870
+ * @class Subscription
871
+ */
872
+ declare class Subscription implements SubscriptionLike {
873
+ private initialTeardown?;
874
+ /** @nocollapse */
875
+ static EMPTY: Subscription;
876
+ /**
877
+ * A flag to indicate whether this Subscription has already been unsubscribed.
878
+ */
879
+ closed: boolean;
880
+ private _parentage;
881
+ /**
882
+ * The list of registered finalizers to execute upon unsubscription. Adding and removing from this
883
+ * list occurs in the {@link #add} and {@link #remove} methods.
884
+ */
885
+ private _finalizers;
886
+ /**
887
+ * @param initialTeardown A function executed first as part of the finalization
888
+ * process that is kicked off when {@link #unsubscribe} is called.
889
+ */
890
+ constructor(initialTeardown?: (() => void) | undefined);
891
+ /**
892
+ * Disposes the resources held by the subscription. May, for instance, cancel
893
+ * an ongoing Observable execution or cancel any other type of work that
894
+ * started when the Subscription was created.
895
+ * @return {void}
896
+ */
897
+ unsubscribe(): void;
898
+ /**
899
+ * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called
900
+ * when this subscription is unsubscribed. If this subscription is already {@link #closed},
901
+ * because it has already been unsubscribed, then whatever finalizer is passed to it
902
+ * will automatically be executed (unless the finalizer itself is also a closed subscription).
903
+ *
904
+ * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed
905
+ * subscription to a any subscription will result in no operation. (A noop).
906
+ *
907
+ * Adding a subscription to itself, or adding `null` or `undefined` will not perform any
908
+ * operation at all. (A noop).
909
+ *
910
+ * `Subscription` instances that are added to this instance will automatically remove themselves
911
+ * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove
912
+ * will need to be removed manually with {@link #remove}
913
+ *
914
+ * @param teardown The finalization logic to add to this subscription.
915
+ */
916
+ add(teardown: TeardownLogic): void;
917
+ /**
918
+ * Checks to see if a this subscription already has a particular parent.
919
+ * This will signal that this subscription has already been added to the parent in question.
920
+ * @param parent the parent to check for
921
+ */
922
+ private _hasParent;
923
+ /**
924
+ * Adds a parent to this subscription so it can be removed from the parent if it
925
+ * unsubscribes on it's own.
926
+ *
927
+ * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.
928
+ * @param parent The parent subscription to add
929
+ */
930
+ private _addParent;
931
+ /**
932
+ * Called on a child when it is removed via {@link #remove}.
933
+ * @param parent The parent to remove
934
+ */
935
+ private _removeParent;
936
+ /**
937
+ * Removes a finalizer from this subscription that was previously added with the {@link #add} method.
938
+ *
939
+ * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves
940
+ * from every other `Subscription` they have been added to. This means that using the `remove` method
941
+ * is not a common thing and should be used thoughtfully.
942
+ *
943
+ * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance
944
+ * more than once, you will need to call `remove` the same number of times to remove all instances.
945
+ *
946
+ * All finalizer instances are removed to free up memory upon unsubscription.
947
+ *
948
+ * @param teardown The finalizer to remove from this subscription
949
+ */
950
+ remove(teardown: Exclude<TeardownLogic, void>): void;
951
+ }
952
+ //#endregion
953
+ //#region ../../node_modules/rxjs/dist/types/internal/types.d.ts
954
+ /**
955
+ * Note: This will add Symbol.observable globally for all TypeScript users,
956
+ * however, we are no longer polyfilling Symbol.observable
957
+ */
958
+ declare global {
959
+ interface SymbolConstructor {
960
+ readonly observable: symbol;
961
+ }
962
+ }
963
+ /**
964
+ * A function type interface that describes a function that accepts one parameter `T`
965
+ * and returns another parameter `R`.
966
+ *
967
+ * Usually used to describe {@link OperatorFunction} - it always takes a single
968
+ * parameter (the source Observable) and returns another Observable.
969
+ */
970
+ interface UnaryFunction<T, R> {
971
+ (source: T): R;
972
+ }
973
+ interface OperatorFunction<T, R> extends UnaryFunction<Observable<T>, Observable<R>> {}
974
+ interface Unsubscribable {
975
+ unsubscribe(): void;
976
+ }
977
+ declare type TeardownLogic = Subscription | Unsubscribable | (() => void) | void;
978
+ interface SubscriptionLike extends Unsubscribable {
979
+ unsubscribe(): void;
980
+ readonly closed: boolean;
981
+ }
982
+ /** OBSERVABLE INTERFACES */
983
+ interface Subscribable<T> {
984
+ subscribe(observer: Partial<Observer<T>>): Unsubscribable;
985
+ }
986
+ /**
987
+ * An object interface that defines a set of callback functions a user can use to get
988
+ * notified of any set of {@link Observable}
989
+ * {@link guide/glossary-and-semantics#notification notification} events.
990
+ *
991
+ * For more info, please refer to {@link guide/observer this guide}.
992
+ */
993
+ interface Observer<T> {
994
+ /**
995
+ * A callback function that gets called by the producer during the subscription when
996
+ * the producer "has" the `value`. It won't be called if `error` or `complete` callback
997
+ * functions have been called, nor after the consumer has unsubscribed.
998
+ *
999
+ * For more info, please refer to {@link guide/glossary-and-semantics#next this guide}.
1000
+ */
1001
+ next: (value: T) => void;
1002
+ /**
1003
+ * A callback function that gets called by the producer if and when it encountered a
1004
+ * problem of any kind. The errored value will be provided through the `err` parameter.
1005
+ * This callback can't be called more than one time, it can't be called if the
1006
+ * `complete` callback function have been called previously, nor it can't be called if
1007
+ * the consumer has unsubscribed.
1008
+ *
1009
+ * For more info, please refer to {@link guide/glossary-and-semantics#error this guide}.
1010
+ */
1011
+ error: (err: any) => void;
1012
+ /**
1013
+ * A callback function that gets called by the producer if and when it has no more
1014
+ * values to provide (by calling `next` callback function). This means that no error
1015
+ * has happened. This callback can't be called more than one time, it can't be called
1016
+ * if the `error` callback function have been called previously, nor it can't be called
1017
+ * if the consumer has unsubscribed.
1018
+ *
1019
+ * For more info, please refer to {@link guide/glossary-and-semantics#complete this guide}.
1020
+ */
1021
+ complete: () => void;
1022
+ }
1023
+ //#endregion
1024
+ //#region ../../node_modules/rxjs/dist/types/internal/Subscriber.d.ts
1025
+ /**
1026
+ * Implements the {@link Observer} interface and extends the
1027
+ * {@link Subscription} class. While the {@link Observer} is the public API for
1028
+ * consuming the values of an {@link Observable}, all Observers get converted to
1029
+ * a Subscriber, in order to provide Subscription-like capabilities such as
1030
+ * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for
1031
+ * implementing operators, but it is rarely used as a public API.
1032
+ *
1033
+ * @class Subscriber<T>
1034
+ */
1035
+ declare class Subscriber<T> extends Subscription implements Observer<T> {
1036
+ /**
1037
+ * A static factory for a Subscriber, given a (potentially partial) definition
1038
+ * of an Observer.
1039
+ * @param next The `next` callback of an Observer.
1040
+ * @param error The `error` callback of an
1041
+ * Observer.
1042
+ * @param complete The `complete` callback of an
1043
+ * Observer.
1044
+ * @return A Subscriber wrapping the (partially defined)
1045
+ * Observer represented by the given arguments.
1046
+ * @nocollapse
1047
+ * @deprecated Do not use. Will be removed in v8. There is no replacement for this
1048
+ * method, and there is no reason to be creating instances of `Subscriber` directly.
1049
+ * If you have a specific use case, please file an issue.
1050
+ */
1051
+ static create<T>(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber<T>;
1052
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
1053
+ protected isStopped: boolean;
1054
+ /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
1055
+ protected destination: Subscriber<any> | Observer<any>;
1056
+ /**
1057
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1058
+ * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.
1059
+ */
1060
+ constructor(destination?: Subscriber<any> | Observer<any>);
1061
+ /**
1062
+ * The {@link Observer} callback to receive notifications of type `next` from
1063
+ * the Observable, with a value. The Observable may call this method 0 or more
1064
+ * times.
1065
+ * @param {T} [value] The `next` value.
1066
+ * @return {void}
1067
+ */
1068
+ next(value?: T): void;
1069
+ /**
1070
+ * The {@link Observer} callback to receive notifications of type `error` from
1071
+ * the Observable, with an attached `Error`. Notifies the Observer that
1072
+ * the Observable has experienced an error condition.
1073
+ * @param {any} [err] The `error` exception.
1074
+ * @return {void}
1075
+ */
1076
+ error(err?: any): void;
1077
+ /**
1078
+ * The {@link Observer} callback to receive a valueless notification of type
1079
+ * `complete` from the Observable. Notifies the Observer that the Observable
1080
+ * has finished sending push-based notifications.
1081
+ * @return {void}
1082
+ */
1083
+ complete(): void;
1084
+ unsubscribe(): void;
1085
+ protected _next(value: T): void;
1086
+ protected _error(err: any): void;
1087
+ protected _complete(): void;
1088
+ }
1089
+ //#endregion
1090
+ //#region ../../node_modules/rxjs/dist/types/internal/Operator.d.ts
1091
+ /***
1092
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1093
+ */
1094
+ interface Operator<T, R> {
1095
+ call(subscriber: Subscriber<R>, source: any): TeardownLogic;
1096
+ }
1097
+ //#endregion
1098
+ //#region ../../node_modules/rxjs/dist/types/internal/Observable.d.ts
1099
+ /**
1100
+ * A representation of any set of values over any amount of time. This is the most basic building block
1101
+ * of RxJS.
1102
+ *
1103
+ * @class Observable<T>
1104
+ */
1105
+ declare class Observable<T> implements Subscribable<T> {
1106
+ /**
1107
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1108
+ */
1109
+ source: Observable<any> | undefined;
1110
+ /**
1111
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1112
+ */
1113
+ operator: Operator<any, T> | undefined;
1114
+ /**
1115
+ * @constructor
1116
+ * @param {Function} subscribe the function that is called when the Observable is
1117
+ * initially subscribed to. This function is given a Subscriber, to which new values
1118
+ * can be `next`ed, or an `error` method can be called to raise an error, or
1119
+ * `complete` can be called to notify of a successful completion.
1120
+ */
1121
+ constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic);
1122
+ /**
1123
+ * Creates a new Observable by calling the Observable constructor
1124
+ * @owner Observable
1125
+ * @method create
1126
+ * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor
1127
+ * @return {Observable} a new observable
1128
+ * @nocollapse
1129
+ * @deprecated Use `new Observable()` instead. Will be removed in v8.
1130
+ */
1131
+ static create: (...args: any[]) => any;
1132
+ /**
1133
+ * Creates a new Observable, with this Observable instance as the source, and the passed
1134
+ * operator defined as the new observable's operator.
1135
+ * @method lift
1136
+ * @param operator the operator defining the operation to take on the observable
1137
+ * @return a new observable with the Operator applied
1138
+ * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1139
+ * If you have implemented an operator using `lift`, it is recommended that you create an
1140
+ * operator by simply returning `new Observable()` directly. See "Creating new operators from
1141
+ * scratch" section here: https://rxjs.dev/guide/operators
1142
+ */
1143
+ lift<R>(operator?: Operator<T, R>): Observable<R>;
1144
+ subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void)): Subscription;
1145
+ /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */
1146
+ subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;
1147
+ /**
1148
+ * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with
1149
+ * APIs that expect promises, like `async/await`. You cannot unsubscribe from this.
1150
+ *
1151
+ * **WARNING**: Only use this with observables you *know* will complete. If the source
1152
+ * observable does not complete, you will end up with a promise that is hung up, and
1153
+ * potentially all of the state of an async function hanging out in memory. To avoid
1154
+ * this situation, look into adding something like {@link timeout}, {@link take},
1155
+ * {@link takeWhile}, or {@link takeUntil} amongst others.
1156
+ *
1157
+ * #### Example
1158
+ *
1159
+ * ```ts
1160
+ * import { interval, take } from 'rxjs';
1161
+ *
1162
+ * const source$ = interval(1000).pipe(take(4));
1163
+ *
1164
+ * async function getTotal() {
1165
+ * let total = 0;
1166
+ *
1167
+ * await source$.forEach(value => {
1168
+ * total += value;
1169
+ * console.log('observable -> ' + value);
1170
+ * });
1171
+ *
1172
+ * return total;
1173
+ * }
1174
+ *
1175
+ * getTotal().then(
1176
+ * total => console.log('Total: ' + total)
1177
+ * );
1178
+ *
1179
+ * // Expected:
1180
+ * // 'observable -> 0'
1181
+ * // 'observable -> 1'
1182
+ * // 'observable -> 2'
1183
+ * // 'observable -> 3'
1184
+ * // 'Total: 6'
1185
+ * ```
1186
+ *
1187
+ * @param next a handler for each value emitted by the observable
1188
+ * @return a promise that either resolves on observable completion or
1189
+ * rejects with the handled error
1190
+ */
1191
+ forEach(next: (value: T) => void): Promise<void>;
1192
+ /**
1193
+ * @param next a handler for each value emitted by the observable
1194
+ * @param promiseCtor a constructor function used to instantiate the Promise
1195
+ * @return a promise that either resolves on observable completion or
1196
+ * rejects with the handled error
1197
+ * @deprecated Passing a Promise constructor will no longer be available
1198
+ * in upcoming versions of RxJS. This is because it adds weight to the library, for very
1199
+ * little benefit. If you need this functionality, it is recommended that you either
1200
+ * polyfill Promise, or you create an adapter to convert the returned native promise
1201
+ * to whatever promise implementation you wanted. Will be removed in v8.
1202
+ */
1203
+ forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise<void>;
1204
+ pipe(): Observable<T>;
1205
+ pipe<A>(op1: OperatorFunction<T, A>): Observable<A>;
1206
+ pipe<A, B>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>): Observable<B>;
1207
+ pipe<A, B, C>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>): Observable<C>;
1208
+ pipe<A, B, C, D>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>): Observable<D>;
1209
+ pipe<A, B, C, D, E>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>): Observable<E>;
1210
+ pipe<A, B, C, D, E, F>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>): Observable<F>;
1211
+ pipe<A, B, C, D, E, F, G>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>): Observable<G>;
1212
+ pipe<A, B, C, D, E, F, G, H>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>): Observable<H>;
1213
+ pipe<A, B, C, D, E, F, G, H, I>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>, op9: OperatorFunction<H, I>): Observable<I>;
1214
+ pipe<A, B, C, D, E, F, G, H, I>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>, op9: OperatorFunction<H, I>, ...operations: OperatorFunction<any, any>[]): Observable<unknown>;
1215
+ /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
1216
+ toPromise(): Promise<T | undefined>;
1217
+ /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
1218
+ toPromise(PromiseCtor: typeof Promise): Promise<T | undefined>;
1219
+ /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
1220
+ toPromise(PromiseCtor: PromiseConstructorLike): Promise<T | undefined>;
1221
+ }
1222
+ //#endregion
1223
+ //#region src/commands/tasks/push-branch.d.ts
1224
+ type PushBranchContext = CmContext<{
1225
+ origin?: string;
1226
+ featureBranch?: string;
1227
+ upstream?: boolean;
1228
+ noVerify?: boolean;
1229
+ }>;
1230
+ //#endregion
1231
+ //#region src/commands/finish.d.ts
1232
+ declare class Finish extends Rebase implements ICommand {
1233
+ mapContext(commander: RebaseOpts, context: CmContext): CmContext;
1234
+ verifyConditions(context: CmContext): void;
1235
+ getTasks(context: PushBranchContext & RebaseOpts): CmTask[];
1236
+ success(context: CmContext): void;
1237
+ }
1238
+ //#endregion
1239
+ //#region src/commands/jira-releases.d.ts
1240
+ interface JiraReleasesOpts {
1241
+ component?: string;
1242
+ projectId?: string;
1243
+ update?: number;
1244
+ verbose?: number;
1245
+ tag?: string;
1246
+ }
1247
+ interface JiraRelease {
1248
+ id: string;
1249
+ name: string;
1250
+ released: boolean;
1251
+ releaseDate?: string;
1252
+ version: string;
1253
+ [key: string]: unknown;
1254
+ }
1255
+ type JiraReleasesContext = CmContext<{
1256
+ projectId?: string;
1257
+ component?: string;
1258
+ tag?: string;
1259
+ update?: number;
1260
+ releases?: JiraRelease[];
1261
+ }>;
1262
+ declare class JiraReleases implements ICommand {
1263
+ mapContext(commander: JiraReleasesOpts, context: CmContext): JiraReleasesContext;
1264
+ getTasks(context: JiraReleasesContext): CmTask[];
1265
+ }
1266
+ //#endregion
1267
+ //#region src/commands/merge.d.ts
1268
+ declare class Merge implements ICommand {
1269
+ private lastCommitMessage;
1270
+ getTasks(context: CmContext): CmTask[];
1271
+ success(context: CmContext): void;
1272
+ }
1273
+ //#endregion
1274
+ //#region src/commands/packages.d.ts
1275
+ declare class Packages implements ICommand {
1276
+ mapContext(options: Record<string, unknown>, context: CmContext): CmContext;
1277
+ getTasks(context: CmContext): CmTask[];
1278
+ }
1279
+ //#endregion
1280
+ //#region src/commands/pull.d.ts
1281
+ declare class Pull implements ICommand {
1282
+ mapContext(options: Record<string, unknown>, context: CmContext): CmContext;
1283
+ getTasks(context: CmContext): CmTask[];
1284
+ success(context: CmContext): void;
1285
+ }
1286
+ //#endregion
1287
+ //#region src/commands/push.d.ts
1288
+ declare class Push extends Rebase implements ICommand {
1289
+ mapContext(commander: RebaseOpts, context: CmContext): CmContext;
1290
+ getTasks(context: CmContext): CmTask[];
1291
+ success(context: CmContext): void;
1292
+ }
1293
+ declare const publish: (program: Command) => void;
1294
+ //#endregion
1295
+ //#region src/commands/republish.d.ts
1296
+ interface RepublishOpts {
1297
+ verbose?: number;
1298
+ }
1299
+ declare class Republish extends Fetch implements ICommand {
1300
+ mapContext(commander: RepublishOpts, context: CmContext): CmContext;
1301
+ getTasks(context: CmContext): CmTask[];
1302
+ success(): void;
1303
+ }
1304
+ //#endregion
1305
+ //#region src/commands/start.d.ts
1306
+ interface StartOpts {
1307
+ jiraId?: string;
1308
+ branchName?: string;
1309
+ dryRun?: boolean;
1310
+ verbose?: number;
1311
+ }
1312
+ type StartContext = CmContext<{
1313
+ jiraId?: string;
1314
+ branchName?: string;
1315
+ type?: string;
1316
+ featureBranch?: string;
1317
+ fromBranch?: string;
1318
+ origin?: string;
1319
+ }>;
1320
+ declare class Start extends Fetch implements ICommand {
1321
+ mapContext(options: StartOpts, context: CmContext): StartContext;
1322
+ prompt(context: StartContext): Promise<Record<string, unknown> | symbol>;
1323
+ getTasks(context: StartContext): CmTask[];
1324
+ success(context: StartContext): void;
1325
+ }
1326
+ declare namespace index_d_exports {
1327
+ export { Checkfeatures, Clean, Config, Deploy, Fetch, Finish, JiraRelease, JiraReleases, Merge, Packages, Pull, Push, Rebase, RebaseOpts, Republish, Start, publish };
1328
+ }
1329
+ //#endregion
1330
+ //#region src/commands/release.d.ts
1331
+ declare function release(options?: {}): void;
1332
+ //#endregion
1333
+ //#region ../../node_modules/execa/index.d.ts
1334
+ declare namespace execa {
1335
+ type StdioOption = 'pipe' | 'ipc' | 'ignore' | 'inherit' | Stream | number | undefined;
1336
+ interface CommonOptions<EncodingType> {
1337
+ /**
1338
+ Kill the spawned process when the parent process exits unless either:
1339
+ - the spawned process is [`detached`](https://nodejs.org/api/child_process.html#child_process_options_detached)
1340
+ - the parent process is terminated abruptly, for example, with `SIGKILL` as opposed to `SIGTERM` or a normal exit
1341
+
1342
+ @default true
1343
+ */
1344
+ readonly cleanup?: boolean;
1345
+ /**
1346
+ Prefer locally installed binaries when looking for a binary to execute.
1347
+
1348
+ If you `$ npm install foo`, you can then `execa('foo')`.
1349
+
1350
+ @default false
1351
+ */
1352
+ readonly preferLocal?: boolean;
1353
+ /**
1354
+ Preferred path to find locally installed binaries in (use with `preferLocal`).
1355
+
1356
+ @default process.cwd()
1357
+ */
1358
+ readonly localDir?: string;
1359
+ /**
1360
+ Path to the Node.js executable to use in child processes.
1361
+
1362
+ This can be either an absolute path or a path relative to the `cwd` option.
1363
+
1364
+ Requires `preferLocal` to be `true`.
1365
+
1366
+ For example, this can be used together with [`get-node`](https://github.com/ehmicky/get-node) to run a specific Node.js version in a child process.
1367
+
1368
+ @default process.execPath
1369
+ */
1370
+ readonly execPath?: string;
1371
+ /**
1372
+ Buffer the output from the spawned process. When set to `false`, you must read the output of `stdout` and `stderr` (or `all` if the `all` option is `true`). Otherwise the returned promise will not be resolved/rejected.
1373
+
1374
+ If the spawned process fails, `error.stdout`, `error.stderr`, and `error.all` will contain the buffered data.
1375
+
1376
+ @default true
1377
+ */
1378
+ readonly buffer?: boolean;
1379
+ /**
1380
+ Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
1381
+
1382
+ @default 'pipe'
1383
+ */
1384
+ readonly stdin?: StdioOption;
1385
+ /**
1386
+ Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
1387
+
1388
+ @default 'pipe'
1389
+ */
1390
+ readonly stdout?: StdioOption;
1391
+ /**
1392
+ Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio).
1393
+
1394
+ @default 'pipe'
1395
+ */
1396
+ readonly stderr?: StdioOption;
1397
+ /**
1398
+ Setting this to `false` resolves the promise with the error instead of rejecting it.
1399
+
1400
+ @default true
1401
+ */
1402
+ readonly reject?: boolean;
1403
+ /**
1404
+ Add an `.all` property on the promise and the resolved value. The property contains the output of the process with `stdout` and `stderr` interleaved.
1405
+
1406
+ @default false
1407
+ */
1408
+ readonly all?: boolean;
1409
+ /**
1410
+ Strip the final [newline character](https://en.wikipedia.org/wiki/Newline) from the output.
1411
+
1412
+ @default true
1413
+ */
1414
+ readonly stripFinalNewline?: boolean;
1415
+ /**
1416
+ Set to `false` if you don't want to extend the environment variables when providing the `env` property.
1417
+
1418
+ @default true
1419
+ */
1420
+ readonly extendEnv?: boolean;
1421
+ /**
1422
+ Current working directory of the child process.
1423
+
1424
+ @default process.cwd()
1425
+ */
1426
+ readonly cwd?: string;
1427
+ /**
1428
+ Environment key-value pairs. Extends automatically from `process.env`. Set `extendEnv` to `false` if you don't want this.
1429
+
1430
+ @default process.env
1431
+ */
1432
+ readonly env?: NodeJS.ProcessEnv;
1433
+ /**
1434
+ Explicitly set the value of `argv[0]` sent to the child process. This will be set to `command` or `file` if not specified.
1435
+ */
1436
+ readonly argv0?: string;
1437
+ /**
1438
+ Child's [stdio](https://nodejs.org/api/child_process.html#child_process_options_stdio) configuration.
1439
+
1440
+ @default 'pipe'
1441
+ */
1442
+ readonly stdio?: 'pipe' | 'ignore' | 'inherit' | readonly StdioOption[];
1443
+ /**
1444
+ Specify the kind of serialization used for sending messages between processes when using the `stdio: 'ipc'` option or `execa.node()`:
1445
+ - `json`: Uses `JSON.stringify()` and `JSON.parse()`.
1446
+ - `advanced`: Uses [`v8.serialize()`](https://nodejs.org/api/v8.html#v8_v8_serialize_value)
1447
+
1448
+ Requires Node.js `13.2.0` or later.
1449
+
1450
+ [More info.](https://nodejs.org/api/child_process.html#child_process_advanced_serialization)
1451
+
1452
+ @default 'json'
1453
+ */
1454
+ readonly serialization?: 'json' | 'advanced';
1455
+ /**
1456
+ Prepare child to run independently of its parent process. Specific behavior [depends on the platform](https://nodejs.org/api/child_process.html#child_process_options_detached).
1457
+
1458
+ @default false
1459
+ */
1460
+ readonly detached?: boolean;
1461
+ /**
1462
+ Sets the user identity of the process.
1463
+ */
1464
+ readonly uid?: number;
1465
+ /**
1466
+ Sets the group identity of the process.
1467
+ */
1468
+ readonly gid?: number;
1469
+ /**
1470
+ If `true`, runs `command` inside of a shell. Uses `/bin/sh` on UNIX and `cmd.exe` on Windows. A different shell can be specified as a string. The shell should understand the `-c` switch on UNIX or `/d /s /c` on Windows.
1471
+
1472
+ We recommend against using this option since it is:
1473
+ - not cross-platform, encouraging shell-specific syntax.
1474
+ - slower, because of the additional shell interpretation.
1475
+ - unsafe, potentially allowing command injection.
1476
+
1477
+ @default false
1478
+ */
1479
+ readonly shell?: boolean | string;
1480
+ /**
1481
+ Specify the character encoding used to decode the `stdout` and `stderr` output. If set to `null`, then `stdout` and `stderr` will be a `Buffer` instead of a string.
1482
+
1483
+ @default 'utf8'
1484
+ */
1485
+ readonly encoding?: EncodingType;
1486
+ /**
1487
+ If `timeout` is greater than `0`, the parent will send the signal identified by the `killSignal` property (the default is `SIGTERM`) if the child runs longer than `timeout` milliseconds.
1488
+
1489
+ @default 0
1490
+ */
1491
+ readonly timeout?: number;
1492
+ /**
1493
+ Largest amount of data in bytes allowed on `stdout` or `stderr`. Default: 100 MB.
1494
+
1495
+ @default 100_000_000
1496
+ */
1497
+ readonly maxBuffer?: number;
1498
+ /**
1499
+ Signal value to be used when the spawned process will be killed.
1500
+
1501
+ @default 'SIGTERM'
1502
+ */
1503
+ readonly killSignal?: string | number;
1504
+ /**
1505
+ If `true`, no quoting or escaping of arguments is done on Windows. Ignored on other platforms. This is set to `true` automatically when the `shell` option is `true`.
1506
+
1507
+ @default false
1508
+ */
1509
+ readonly windowsVerbatimArguments?: boolean;
1510
+ /**
1511
+ On Windows, do not create a new console window. Please note this also prevents `CTRL-C` [from working](https://github.com/nodejs/node/issues/29837) on Windows.
1512
+
1513
+ @default true
1514
+ */
1515
+ readonly windowsHide?: boolean;
1516
+ }
1517
+ interface Options<EncodingType = string> extends CommonOptions<EncodingType> {
1518
+ /**
1519
+ Write some input to the `stdin` of your binary.
1520
+ */
1521
+ readonly input?: string | Buffer | Readable;
1522
+ }
1523
+ interface SyncOptions<EncodingType = string> extends CommonOptions<EncodingType> {
1524
+ /**
1525
+ Write some input to the `stdin` of your binary.
1526
+ */
1527
+ readonly input?: string | Buffer;
1528
+ }
1529
+ interface NodeOptions<EncodingType = string> extends Options<EncodingType> {
1530
+ /**
1531
+ The Node.js executable to use.
1532
+
1533
+ @default process.execPath
1534
+ */
1535
+ readonly nodePath?: string;
1536
+ /**
1537
+ List of [CLI options](https://nodejs.org/api/cli.html#cli_options) passed to the Node.js executable.
1538
+
1539
+ @default process.execArgv
1540
+ */
1541
+ readonly nodeOptions?: string[];
1542
+ }
1543
+ interface ExecaReturnBase<StdoutStderrType> {
1544
+ /**
1545
+ The file and arguments that were run, for logging purposes.
1546
+
1547
+ This is not escaped and should not be executed directly as a process, including using `execa()` or `execa.command()`.
1548
+ */
1549
+ command: string;
1550
+ /**
1551
+ Same as `command` but escaped.
1552
+
1553
+ This is meant to be copy and pasted into a shell, for debugging purposes.
1554
+ Since the escaping is fairly basic, this should not be executed directly as a process, including using `execa()` or `execa.command()`.
1555
+ */
1556
+ escapedCommand: string;
1557
+ /**
1558
+ The numeric exit code of the process that was run.
1559
+ */
1560
+ exitCode: number;
1561
+ /**
1562
+ The output of the process on stdout.
1563
+ */
1564
+ stdout: StdoutStderrType;
1565
+ /**
1566
+ The output of the process on stderr.
1567
+ */
1568
+ stderr: StdoutStderrType;
1569
+ /**
1570
+ Whether the process failed to run.
1571
+ */
1572
+ failed: boolean;
1573
+ /**
1574
+ Whether the process timed out.
1575
+ */
1576
+ timedOut: boolean;
1577
+ /**
1578
+ Whether the process was killed.
1579
+ */
1580
+ killed: boolean;
1581
+ /**
1582
+ The name of the signal that was used to terminate the process. For example, `SIGFPE`.
1583
+
1584
+ If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`.
1585
+ */
1586
+ signal?: string;
1587
+ /**
1588
+ A human-friendly description of the signal that was used to terminate the process. For example, `Floating point arithmetic error`.
1589
+
1590
+ If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`. It is also `undefined` when the signal is very uncommon which should seldomly happen.
1591
+ */
1592
+ signalDescription?: string;
1593
+ }
1594
+ interface ExecaSyncReturnValue<StdoutErrorType = string> extends ExecaReturnBase<StdoutErrorType> {}
1595
+ /**
1596
+ Result of a child process execution. On success this is a plain object. On failure this is also an `Error` instance.
1597
+
1598
+ The child process fails when:
1599
+ - its exit code is not `0`
1600
+ - it was killed with a signal
1601
+ - timing out
1602
+ - being canceled
1603
+ - there's not enough memory or there are already too many child processes
1604
+ */
1605
+ interface ExecaReturnValue<StdoutErrorType = string> extends ExecaSyncReturnValue<StdoutErrorType> {
1606
+ /**
1607
+ The output of the process with `stdout` and `stderr` interleaved.
1608
+
1609
+ This is `undefined` if either:
1610
+ - the `all` option is `false` (default value)
1611
+ - `execa.sync()` was used
1612
+ */
1613
+ all?: StdoutErrorType;
1614
+ /**
1615
+ Whether the process was canceled.
1616
+ */
1617
+ isCanceled: boolean;
1618
+ }
1619
+ interface ExecaSyncError<StdoutErrorType = string> extends Error, ExecaReturnBase<StdoutErrorType> {
1620
+ /**
1621
+ Error message when the child process failed to run. In addition to the underlying error message, it also contains some information related to why the child process errored.
1622
+
1623
+ The child process stderr then stdout are appended to the end, separated with newlines and not interleaved.
1624
+ */
1625
+ message: string;
1626
+ /**
1627
+ This is the same as the `message` property except it does not include the child process stdout/stderr.
1628
+ */
1629
+ shortMessage: string;
1630
+ /**
1631
+ Original error message. This is the same as the `message` property except it includes neither the child process stdout/stderr nor some additional information added by Execa.
1632
+
1633
+ This is `undefined` unless the child process exited due to an `error` event or a timeout.
1634
+ */
1635
+ originalMessage?: string;
1636
+ }
1637
+ interface ExecaError<StdoutErrorType = string> extends ExecaSyncError<StdoutErrorType> {
1638
+ /**
1639
+ The output of the process with `stdout` and `stderr` interleaved.
1640
+
1641
+ This is `undefined` if either:
1642
+ - the `all` option is `false` (default value)
1643
+ - `execa.sync()` was used
1644
+ */
1645
+ all?: StdoutErrorType;
1646
+ /**
1647
+ Whether the process was canceled.
1648
+ */
1649
+ isCanceled: boolean;
1650
+ }
1651
+ interface KillOptions {
1652
+ /**
1653
+ Milliseconds to wait for the child process to terminate before sending `SIGKILL`.
1654
+
1655
+ Can be disabled with `false`.
1656
+
1657
+ @default 5000
1658
+ */
1659
+ forceKillAfterTimeout?: number | false;
1660
+ }
1661
+ interface ExecaChildPromise<StdoutErrorType> {
1662
+ /**
1663
+ Stream combining/interleaving [`stdout`](https://nodejs.org/api/child_process.html#child_process_subprocess_stdout) and [`stderr`](https://nodejs.org/api/child_process.html#child_process_subprocess_stderr).
1664
+
1665
+ This is `undefined` if either:
1666
+ - the `all` option is `false` (the default value)
1667
+ - both `stdout` and `stderr` options are set to [`'inherit'`, `'ipc'`, `Stream` or `integer`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio)
1668
+ */
1669
+ all?: Readable;
1670
+ catch<ResultType = never>(onRejected?: (reason: ExecaError<StdoutErrorType>) => ResultType | PromiseLike<ResultType>): Promise<ExecaReturnValue<StdoutErrorType> | ResultType>;
1671
+ /**
1672
+ Same as the original [`child_process#kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal), except if `signal` is `SIGTERM` (the default value) and the child process is not terminated after 5 seconds, force it by sending `SIGKILL`.
1673
+ */
1674
+ kill(signal?: string, options?: KillOptions): void;
1675
+ /**
1676
+ Similar to [`childProcess.kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal). This is preferred when cancelling the child process execution as the error is more descriptive and [`childProcessResult.isCanceled`](#iscanceled) is set to `true`.
1677
+ */
1678
+ cancel(): void;
1679
+ }
1680
+ type ExecaChildProcess<StdoutErrorType = string> = ChildProcess & ExecaChildPromise<StdoutErrorType> & Promise<ExecaReturnValue<StdoutErrorType>>;
1681
+ }
1682
+ declare const execa: {
1683
+ /**
1684
+ Execute a file.
1685
+
1686
+ Think of this as a mix of `child_process.execFile` and `child_process.spawn`.
1687
+
1688
+ @param file - The program/script to execute.
1689
+ @param arguments - Arguments to pass to `file` on execution.
1690
+ @returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.
1691
+
1692
+ @example
1693
+ ```
1694
+ import execa = require('execa');
1695
+
1696
+ (async () => {
1697
+ const {stdout} = await execa('echo', ['unicorns']);
1698
+ console.log(stdout);
1699
+ //=> 'unicorns'
1700
+
1701
+ // Cancelling a spawned process
1702
+
1703
+ const subprocess = execa('node');
1704
+
1705
+ setTimeout(() => {
1706
+ subprocess.cancel()
1707
+ }, 1000);
1708
+
1709
+ try {
1710
+ await subprocess;
1711
+ } catch (error) {
1712
+ console.log(subprocess.killed); // true
1713
+ console.log(error.isCanceled); // true
1714
+ }
1715
+ })();
1716
+
1717
+ // Pipe the child process stdout to the current stdout
1718
+ execa('echo', ['unicorns']).stdout.pipe(process.stdout);
1719
+ ```
1720
+ */
1721
+ (file: string, arguments?: readonly string[], options?: execa.Options): execa.ExecaChildProcess;
1722
+ (file: string, arguments?: readonly string[], options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
1723
+ (file: string, options?: execa.Options): execa.ExecaChildProcess;
1724
+ (file: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
1725
+ /**
1726
+ Execute a file synchronously.
1727
+
1728
+ This method throws an `Error` if the command fails.
1729
+
1730
+ @param file - The program/script to execute.
1731
+ @param arguments - Arguments to pass to `file` on execution.
1732
+ @returns A result `Object` with `stdout` and `stderr` properties.
1733
+ */
1734
+ sync(file: string, arguments?: readonly string[], options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
1735
+ sync(file: string, arguments?: readonly string[], options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
1736
+ sync(file: string, options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
1737
+ sync(file: string, options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
1738
+ /**
1739
+ Same as `execa()` except both file and arguments are specified in a single `command` string. For example, `execa('echo', ['unicorns'])` is the same as `execa.command('echo unicorns')`.
1740
+
1741
+ If the file or an argument contains spaces, they must be escaped with backslashes. This matters especially if `command` is not a constant but a variable, for example with `__dirname` or `process.cwd()`. Except for spaces, no escaping/quoting is needed.
1742
+
1743
+ The `shell` option must be used if the `command` uses shell-specific features (for example, `&&` or `||`), as opposed to being a simple `file` followed by its `arguments`.
1744
+
1745
+ @param command - The program/script to execute and its arguments.
1746
+ @returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.
1747
+
1748
+ @example
1749
+ ```
1750
+ import execa = require('execa');
1751
+
1752
+ (async () => {
1753
+ const {stdout} = await execa.command('echo unicorns');
1754
+ console.log(stdout);
1755
+ //=> 'unicorns'
1756
+ })();
1757
+ ```
1758
+ */
1759
+ command(command: string, options?: execa.Options): execa.ExecaChildProcess;
1760
+ command(command: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
1761
+ /**
1762
+ Same as `execa.command()` but synchronous.
1763
+
1764
+ @param command - The program/script to execute and its arguments.
1765
+ @returns A result `Object` with `stdout` and `stderr` properties.
1766
+ */
1767
+ commandSync(command: string, options?: execa.SyncOptions): execa.ExecaSyncReturnValue;
1768
+ commandSync(command: string, options?: execa.SyncOptions<null>): execa.ExecaSyncReturnValue<Buffer>;
1769
+ /**
1770
+ Execute a Node.js script as a child process.
1771
+
1772
+ Same as `execa('node', [scriptPath, ...arguments], options)` except (like [`child_process#fork()`](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options)):
1773
+ - the current Node version and options are used. This can be overridden using the `nodePath` and `nodeArguments` options.
1774
+ - the `shell` option cannot be used
1775
+ - an extra channel [`ipc`](https://nodejs.org/api/child_process.html#child_process_options_stdio) is passed to [`stdio`](#stdio)
1776
+
1777
+ @param scriptPath - Node.js script to execute.
1778
+ @param arguments - Arguments to pass to `scriptPath` on execution.
1779
+ @returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.
1780
+ */
1781
+ node(scriptPath: string, arguments?: readonly string[], options?: execa.NodeOptions): execa.ExecaChildProcess;
1782
+ node(scriptPath: string, arguments?: readonly string[], options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
1783
+ node(scriptPath: string, options?: execa.Options): execa.ExecaChildProcess;
1784
+ node(scriptPath: string, options?: execa.Options<null>): execa.ExecaChildProcess<Buffer>;
1785
+ };
1786
+ //#endregion
1787
+ //#region src/common/cli/cli.d.ts
1788
+ type RunOptions = Record<string, unknown>;
1789
+ interface CliResult extends Promise<unknown> {
1790
+ toObservable(opt?: RunOptions): Observable<string>;
1791
+ toStream(opt?: RunOptions): execa.ExecaChildProcess<string>;
1792
+ cwd(cwd: string): CliResult;
1793
+ sync(opt?: RunOptions): execa.ExecaSyncReturnValue<string>;
1794
+ getRaw(opt?: RunOptions): string;
1795
+ get(opt?: RunOptions): string;
1796
+ }
1797
+ declare class Cli {
1798
+ cmd: string;
1799
+ constructor(cmd: string);
1800
+ sync(...args: string[]): execa.ExecaSyncReturnValue<string>;
1801
+ run(...args: string[]): CliResult;
1802
+ get(...args: string[]): string;
1803
+ static run(cmd: string, args?: string[], options?: RunOptions): CliResult;
1804
+ static getRaw(cmd: string, args: string[], options?: RunOptions): string;
1805
+ }
1806
+ //#endregion
1807
+ //#region src/common/cli/bun.d.ts
1808
+ declare class BunCli extends Cli {
1809
+ constructor();
1810
+ newVersion(version: string): undefined<string>;
1811
+ pm(...args: string[]): undefined<string>;
1812
+ run(...args: string[]): CliResult;
1813
+ install(...args: string[]): CliResult;
1814
+ /**
1815
+ * Reinstall dependencies without bun.lock mutation
1816
+ * @returns {Promise<unknown>}
1817
+ */
1818
+ restore(): CliResult;
1819
+ }
1820
+ declare const bun: BunCli;
1821
+ //#endregion
1822
+ //#region src/common/cli/docker.d.ts
1823
+ declare class DockerCli extends Cli {
1824
+ constructor();
1825
+ tag(...args: string[]): string;
1826
+ login(...args: string[]): undefined<string>;
1827
+ push(...args: string[]): CliResult;
1828
+ getToken(username: string, password: string): Promise<any>;
1829
+ getTags({ token, repository }: {
1830
+ token: string;
1831
+ repository: string;
1832
+ }): Promise<any>;
1833
+ deleteTag(tag: string, { token, repository }: {
1834
+ token: string;
1835
+ repository: string;
1836
+ }): Promise<void>;
1837
+ }
1838
+ declare const docker: DockerCli;
1839
+ //#endregion
1840
+ //#region src/common/cli/git.d.ts
1841
+ declare class GitCli extends Cli {
1842
+ constructor();
1843
+ init(...args: string[]): CliResult;
1844
+ add(...args: string[]): CliResult;
1845
+ status(...args: string[]): undefined<string>;
1846
+ branch(...args: string[]): CliResult;
1847
+ clean(...args: string[]): CliResult;
1848
+ config(...args: string[]): string;
1849
+ checkout(...args: string[]): CliResult;
1850
+ commit(...args: string[]): CliResult;
1851
+ fetch(...args: string[]): CliResult;
1852
+ prune(...args: string[]): CliResult;
1853
+ merge(...args: string[]): undefined<string>;
1854
+ reset(...args: string[]): undefined<string>;
1855
+ remote(...args: string[]): CliResult;
1856
+ rebase(...args: string[]): CliResult;
1857
+ getCommitTag(ref?: string): string;
1858
+ getBranchName(ref?: string): string;
1859
+ getLastCommitMsg(): string;
1860
+ push(...args: string[]): CliResult;
1861
+ branchExists(branch: string, origin?: string): boolean;
1862
+ checkBranchRemoteStatus(branch: string, origin?: string): string;
1863
+ branches(...args: string[]): string[];
1864
+ show(branch: string): string;
1865
+ branchesInfos(...args: string[]): {
1866
+ branch: string;
1867
+ date: string;
1868
+ creation: string;
1869
+ author: string;
1870
+ }[];
1871
+ }
1872
+ declare const git: GitCli;
1873
+ //#endregion
1874
+ //#region src/common/cli/lerna.d.ts
1875
+ declare class LernaCli extends Cli {
1876
+ constructor();
1877
+ newVersion(version: string): undefined<string>;
1878
+ version(...args: string[]): undefined<string>;
1879
+ run(...args: string[]): CliResult;
1880
+ install(...args: string[]): CliResult;
1881
+ }
1882
+ declare const lerna: LernaCli;
1883
+ //#endregion
1884
+ //#region src/common/cli/npm.d.ts
1885
+ declare class NpmCli extends Cli {
1886
+ constructor();
1887
+ newVersion(version: string): undefined<string>;
1888
+ version(...args: string[]): undefined<string>;
1889
+ run(...args: string[]): CliResult;
1890
+ install(...args: string[]): CliResult;
1891
+ publish(...args: string[]): CliResult;
1892
+ pack(...args: string[]): CliResult;
1893
+ /**
1894
+ * Reinstall dependencies without package-lock mutation
1895
+ * @returns {Promise<unknown>}
1896
+ */
1897
+ restore(): CliResult;
1898
+ }
1899
+ declare const npm: NpmCli;
1900
+ //#endregion
1901
+ //#region src/common/cli/pnpm.d.ts
1902
+ declare class PnpmCli extends Cli {
1903
+ constructor();
1904
+ newVersion(version: string): undefined<string>;
1905
+ version(...args: string[]): undefined<string>;
1906
+ run(...args: string[]): CliResult;
1907
+ install(...args: string[]): CliResult;
1908
+ /**
1909
+ * Reinstall dependencies without pnpm-lock.yaml mutation
1910
+ * @returns {Promise<unknown>}
1911
+ */
1912
+ restore(): CliResult;
1913
+ }
1914
+ declare const pnpm: PnpmCli;
1915
+ //#endregion
1916
+ //#region src/common/cli/yarn.d.ts
1917
+ declare class YarnCli extends Cli {
1918
+ constructor();
1919
+ newVersion(version: string): undefined<string>;
1920
+ version(...args: string[]): undefined<string>;
1921
+ run(...args: string[]): CliResult;
1922
+ install(...args: string[]): CliResult;
1923
+ /**
1924
+ * Reinstall dependencies without yarn.lock mutation
1925
+ * @returns {Promise<unknown>}
1926
+ */
1927
+ restore(): CliResult;
1928
+ }
1929
+ declare const yarn: YarnCli;
1930
+ //#endregion
1931
+ //#region src/common/configure-git-workspace.d.ts
1932
+ declare function configureGitWorkspace(context: CmContext): void;
1933
+ //#endregion
1934
+ //#region src/common/get-package-json.d.ts
1935
+ declare function getPackageJson(): PackageJson;
1936
+ //#endregion
1937
+ //#region src/common/get-package-manager.d.ts
1938
+ declare function getPackageManager(pkgManager: string): {
1939
+ newVersion(version: string): undefined<string>;
1940
+ pm(...args: string[]): undefined<string>;
1941
+ run(...args: string[]): CliResult;
1942
+ install(...args: string[]): CliResult;
1943
+ restore(): CliResult;
1944
+ cmd: string;
1945
+ sync(...args: string[]): undefined<string>;
1946
+ get(...args: string[]): string;
1947
+ } | {
1948
+ cmd: string;
1949
+ newVersion(version: string): undefined<string>;
1950
+ version(...args: string[]): undefined<string>;
1951
+ run(...args: string[]): CliResult;
1952
+ install(...args: string[]): CliResult;
1953
+ publish(...args: string[]): CliResult;
1954
+ pack(...args: string[]): CliResult;
1955
+ restore(): CliResult;
1956
+ sync(...args: string[]): undefined<string>;
1957
+ get(...args: string[]): string;
1958
+ } | {
1959
+ newVersion(version: string): undefined<string>;
1960
+ version(...args: string[]): undefined<string>;
1961
+ run(...args: string[]): CliResult;
1962
+ install(...args: string[]): CliResult;
1963
+ restore(): CliResult;
1964
+ cmd: string;
1965
+ sync(...args: string[]): undefined<string>;
1966
+ get(...args: string[]): string;
1967
+ } | {
1968
+ newVersion(version: string): undefined<string>;
1969
+ version(...args: string[]): undefined<string>;
1970
+ run(...args: string[]): CliResult;
1971
+ install(...args: string[]): CliResult;
1972
+ restore(): CliResult;
1973
+ cmd: string;
1974
+ sync(...args: string[]): undefined<string>;
1975
+ get(...args: string[]): string;
1976
+ };
1977
+ //#endregion
1978
+ //#region src/common/run-command.d.ts
1979
+ declare function runCommand(klass: CommandConstructor, opts: Record<string, any>): Promise<void>;
1980
+ //#endregion
1981
+ //#region src/semantic/utils/transform-writer.d.ts
1982
+ interface Commit {
1983
+ type: string;
1984
+ message?: string;
1985
+ subject?: string;
1986
+ scope?: string;
1987
+ hash?: string;
1988
+ shortHash?: string;
1989
+ notes: Array<{
1990
+ title: string;
1991
+ }>;
1992
+ references: Array<{
1993
+ issue: string;
1994
+ }>;
1995
+ [key: string]: unknown;
1996
+ }
1997
+ interface TransformContext {
1998
+ repository?: string;
1999
+ host?: string;
2000
+ owner?: string;
2001
+ repoUrl?: string;
2002
+ }
2003
+ declare function transformWriter(commit: Commit, context: TransformContext): Commit | undefined;
2004
+ //#endregion
2005
+ //#region src/semantic/define-config.d.ts
2006
+ /**
2007
+ * Define the semantic-release configuration based on the ClubMed API configuration.
2008
+ * @param {import('semantic-release').GlobalConfig} opts
2009
+ * @returns {import('semantic-release').GlobalConfig}
2010
+ */
2011
+ declare function defineConfig(opts?: {}): {
2012
+ noCi: boolean;
2013
+ branches: ({
2014
+ name: string;
2015
+ channel: string;
2016
+ prerelease?: undefined;
2017
+ } | {
2018
+ name: string | undefined;
2019
+ channel: string;
2020
+ prerelease: boolean;
2021
+ })[];
2022
+ verifyConditions: string[];
2023
+ analyzeCommits: string[];
2024
+ verifyRelease: string[];
2025
+ generateNotes: string[];
2026
+ prepare: string[];
2027
+ releaseRules: (import("lodash").Omit<{
2028
+ type: string;
2029
+ label: string;
2030
+ release: string;
2031
+ } | {
2032
+ type: string;
2033
+ label: string;
2034
+ release: boolean;
2035
+ }, "label"> | {
2036
+ breaking: boolean;
2037
+ release: string;
2038
+ revert?: undefined;
2039
+ } | {
2040
+ breaking?: undefined;
2041
+ revert: boolean;
2042
+ release: string;
2043
+ })[];
2044
+ parserOpts: {
2045
+ noteKeywords: string[];
2046
+ };
2047
+ writerOpts: {
2048
+ transform: typeof transformWriter;
2049
+ };
2050
+ };
2051
+ //#endregion
2052
+ //#region src/semantic/utils/release-rules.d.ts
2053
+ declare const releaseRules: (import("lodash").Omit<{
2054
+ type: string;
2055
+ label: string;
2056
+ release: string;
2057
+ } | {
2058
+ type: string;
2059
+ label: string;
2060
+ release: boolean;
2061
+ }, "label"> | {
2062
+ breaking: boolean;
2063
+ release: string;
2064
+ revert?: undefined;
2065
+ } | {
2066
+ breaking?: undefined;
2067
+ revert: boolean;
2068
+ release: string;
2069
+ })[];
2070
+ //#endregion
2071
+ //#region src/workflow/index.d.ts
2072
+ declare const WORKFLOW_CONFIGURATION: ({
2073
+ type: string;
2074
+ label: string;
2075
+ release: string;
2076
+ } | {
2077
+ type: string;
2078
+ label: string;
2079
+ release: boolean;
2080
+ })[];
2081
+ //#endregion
2082
+ //#region src/index.d.ts
2083
+ declare global {
2084
+ const __VERSION__: string;
2085
+ }
2086
+ //#endregion
2087
+ export { Cli, CliConfig, CliResult, WORKFLOW_CONFIGURATION, bun, index_d_exports as commands, configureGitWorkspace, defineConfig, docker, getCI, getConfig, getPackageJson, getPackageManager, git, lerna, npm, pnpm, release, releaseRules, runCommand, transformWriter, yarn };
2088
+ //# sourceMappingURL=index.d.mts.map