@bemoje/cli 0.0.20 → 0.0.21

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 (151) hide show
  1. package/package.json +3 -3
  2. package/cjs/arg/ArgumentBuilder.d.ts +0 -23
  3. package/cjs/arg/ArgumentBuilder.d.ts.map +0 -1
  4. package/cjs/arg/ArgumentBuilder.js +0 -52
  5. package/cjs/arg/ArgumentBuilder.js.map +0 -1
  6. package/cjs/arg/ArgumentParserSelector.d.ts +0 -9
  7. package/cjs/arg/ArgumentParserSelector.d.ts.map +0 -1
  8. package/cjs/arg/ArgumentParserSelector.js +0 -15
  9. package/cjs/arg/ArgumentParserSelector.js.map +0 -1
  10. package/cjs/arg/ArgumentReader.d.ts +0 -15
  11. package/cjs/arg/ArgumentReader.d.ts.map +0 -1
  12. package/cjs/arg/ArgumentReader.js +0 -38
  13. package/cjs/arg/ArgumentReader.js.map +0 -1
  14. package/cjs/arg/ArgumentValidatorSelector.d.ts +0 -8
  15. package/cjs/arg/ArgumentValidatorSelector.d.ts.map +0 -1
  16. package/cjs/arg/ArgumentValidatorSelector.js +0 -16
  17. package/cjs/arg/ArgumentValidatorSelector.js.map +0 -1
  18. package/cjs/cmd/CommandBuilder.d.ts +0 -382
  19. package/cjs/cmd/CommandBuilder.d.ts.map +0 -1
  20. package/cjs/cmd/CommandBuilder.js +0 -1235
  21. package/cjs/cmd/CommandBuilder.js.map +0 -1
  22. package/cjs/cmd/CommandBuilderMetaData.d.ts +0 -26
  23. package/cjs/cmd/CommandBuilderMetaData.d.ts.map +0 -1
  24. package/cjs/cmd/CommandBuilderMetaData.js +0 -45
  25. package/cjs/cmd/CommandBuilderMetaData.js.map +0 -1
  26. package/cjs/cmd/CommandFeatureSelector.d.ts +0 -80
  27. package/cjs/cmd/CommandFeatureSelector.d.ts.map +0 -1
  28. package/cjs/cmd/CommandFeatureSelector.js +0 -112
  29. package/cjs/cmd/CommandFeatureSelector.js.map +0 -1
  30. package/cjs/cmd/DefaultHelpConfig.d.ts +0 -29
  31. package/cjs/cmd/DefaultHelpConfig.d.ts.map +0 -1
  32. package/cjs/cmd/DefaultHelpConfig.js +0 -141
  33. package/cjs/cmd/DefaultHelpConfig.js.map +0 -1
  34. package/cjs/core/OutputManager.d.ts +0 -64
  35. package/cjs/core/OutputManager.d.ts.map +0 -1
  36. package/cjs/core/OutputManager.js +0 -97
  37. package/cjs/core/OutputManager.js.map +0 -1
  38. package/cjs/core/ParserSelector.d.ts +0 -17
  39. package/cjs/core/ParserSelector.d.ts.map +0 -1
  40. package/cjs/core/ParserSelector.js +0 -36
  41. package/cjs/core/ParserSelector.js.map +0 -1
  42. package/cjs/core/ValidatorSelector.d.ts +0 -17
  43. package/cjs/core/ValidatorSelector.d.ts.map +0 -1
  44. package/cjs/core/ValidatorSelector.js +0 -36
  45. package/cjs/core/ValidatorSelector.js.map +0 -1
  46. package/cjs/core/splitCombinedArgvShorts.d.ts +0 -2
  47. package/cjs/core/splitCombinedArgvShorts.d.ts.map +0 -1
  48. package/cjs/core/splitCombinedArgvShorts.js +0 -15
  49. package/cjs/core/splitCombinedArgvShorts.js.map +0 -1
  50. package/cjs/db/AbstractJsonFileSection.d.ts +0 -136
  51. package/cjs/db/AbstractJsonFileSection.d.ts.map +0 -1
  52. package/cjs/db/AbstractJsonFileSection.js +0 -189
  53. package/cjs/db/AbstractJsonFileSection.js.map +0 -1
  54. package/cjs/db/AppDataSection.d.ts +0 -30
  55. package/cjs/db/AppDataSection.d.ts.map +0 -1
  56. package/cjs/db/AppDataSection.js +0 -48
  57. package/cjs/db/AppDataSection.js.map +0 -1
  58. package/cjs/db/ConfigSection.d.ts +0 -46
  59. package/cjs/db/ConfigSection.d.ts.map +0 -1
  60. package/cjs/db/ConfigSection.js +0 -70
  61. package/cjs/db/ConfigSection.js.map +0 -1
  62. package/cjs/db/JsonFile.d.ts +0 -36
  63. package/cjs/db/JsonFile.d.ts.map +0 -1
  64. package/cjs/db/JsonFile.js +0 -54
  65. package/cjs/db/JsonFile.js.map +0 -1
  66. package/cjs/db/PresetsSection.d.ts +0 -45
  67. package/cjs/db/PresetsSection.d.ts.map +0 -1
  68. package/cjs/db/PresetsSection.js +0 -92
  69. package/cjs/db/PresetsSection.js.map +0 -1
  70. package/cjs/index.d.ts +0 -25
  71. package/cjs/index.d.ts.map +0 -1
  72. package/cjs/index.js +0 -28
  73. package/cjs/index.js.map +0 -1
  74. package/cjs/opt/OptionArgumentParserSelector.d.ts +0 -8
  75. package/cjs/opt/OptionArgumentParserSelector.d.ts.map +0 -1
  76. package/cjs/opt/OptionArgumentParserSelector.js +0 -16
  77. package/cjs/opt/OptionArgumentParserSelector.js.map +0 -1
  78. package/cjs/opt/OptionArgumentValidatorSelector.d.ts +0 -8
  79. package/cjs/opt/OptionArgumentValidatorSelector.d.ts.map +0 -1
  80. package/cjs/opt/OptionArgumentValidatorSelector.js +0 -19
  81. package/cjs/opt/OptionArgumentValidatorSelector.js.map +0 -1
  82. package/cjs/opt/OptionBuilder.d.ts +0 -32
  83. package/cjs/opt/OptionBuilder.d.ts.map +0 -1
  84. package/cjs/opt/OptionBuilder.js +0 -94
  85. package/cjs/opt/OptionBuilder.js.map +0 -1
  86. package/cjs/opt/OptionHelpers.d.ts +0 -33
  87. package/cjs/opt/OptionHelpers.d.ts.map +0 -1
  88. package/cjs/opt/OptionHelpers.js +0 -57
  89. package/cjs/opt/OptionHelpers.js.map +0 -1
  90. package/cjs/opt/OptionReader.d.ts +0 -24
  91. package/cjs/opt/OptionReader.d.ts.map +0 -1
  92. package/cjs/opt/OptionReader.js +0 -66
  93. package/cjs/opt/OptionReader.js.map +0 -1
  94. package/cjs/types/IConfig.d.ts +0 -22
  95. package/cjs/types/IConfig.d.ts.map +0 -1
  96. package/cjs/types/IConfig.js +0 -3
  97. package/cjs/types/IConfig.js.map +0 -1
  98. package/cjs/types/IPreset.d.ts +0 -15
  99. package/cjs/types/IPreset.d.ts.map +0 -1
  100. package/cjs/types/IPreset.js +0 -3
  101. package/cjs/types/IPreset.js.map +0 -1
  102. package/esm/arg/ArgumentBuilder.js +0 -48
  103. package/esm/arg/ArgumentBuilder.js.map +0 -1
  104. package/esm/arg/ArgumentParserSelector.js +0 -11
  105. package/esm/arg/ArgumentParserSelector.js.map +0 -1
  106. package/esm/arg/ArgumentReader.js +0 -34
  107. package/esm/arg/ArgumentReader.js.map +0 -1
  108. package/esm/arg/ArgumentValidatorSelector.js +0 -12
  109. package/esm/arg/ArgumentValidatorSelector.js.map +0 -1
  110. package/esm/cmd/CommandBuilder.js +0 -1229
  111. package/esm/cmd/CommandBuilder.js.map +0 -1
  112. package/esm/cmd/CommandBuilderMetaData.js +0 -41
  113. package/esm/cmd/CommandBuilderMetaData.js.map +0 -1
  114. package/esm/cmd/CommandFeatureSelector.js +0 -108
  115. package/esm/cmd/CommandFeatureSelector.js.map +0 -1
  116. package/esm/cmd/DefaultHelpConfig.js +0 -137
  117. package/esm/cmd/DefaultHelpConfig.js.map +0 -1
  118. package/esm/core/OutputManager.js +0 -92
  119. package/esm/core/OutputManager.js.map +0 -1
  120. package/esm/core/ParserSelector.js +0 -32
  121. package/esm/core/ParserSelector.js.map +0 -1
  122. package/esm/core/ValidatorSelector.js +0 -32
  123. package/esm/core/ValidatorSelector.js.map +0 -1
  124. package/esm/core/splitCombinedArgvShorts.js +0 -11
  125. package/esm/core/splitCombinedArgvShorts.js.map +0 -1
  126. package/esm/db/AbstractJsonFileSection.js +0 -185
  127. package/esm/db/AbstractJsonFileSection.js.map +0 -1
  128. package/esm/db/AppDataSection.js +0 -44
  129. package/esm/db/AppDataSection.js.map +0 -1
  130. package/esm/db/ConfigSection.js +0 -66
  131. package/esm/db/ConfigSection.js.map +0 -1
  132. package/esm/db/JsonFile.js +0 -50
  133. package/esm/db/JsonFile.js.map +0 -1
  134. package/esm/db/PresetsSection.js +0 -88
  135. package/esm/db/PresetsSection.js.map +0 -1
  136. package/esm/index.js +0 -25
  137. package/esm/index.js.map +0 -1
  138. package/esm/opt/OptionArgumentParserSelector.js +0 -12
  139. package/esm/opt/OptionArgumentParserSelector.js.map +0 -1
  140. package/esm/opt/OptionArgumentValidatorSelector.js +0 -15
  141. package/esm/opt/OptionArgumentValidatorSelector.js.map +0 -1
  142. package/esm/opt/OptionBuilder.js +0 -90
  143. package/esm/opt/OptionBuilder.js.map +0 -1
  144. package/esm/opt/OptionHelpers.js +0 -54
  145. package/esm/opt/OptionHelpers.js.map +0 -1
  146. package/esm/opt/OptionReader.js +0 -62
  147. package/esm/opt/OptionReader.js.map +0 -1
  148. package/esm/types/IConfig.js +0 -2
  149. package/esm/types/IConfig.js.map +0 -1
  150. package/esm/types/IPreset.js +0 -2
  151. package/esm/types/IPreset.js.map +0 -1
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@bemoje/cli",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "type": "commonjs",
5
5
  "main": "cjs/index.js",
6
- "module": "esm/index.js",
7
6
  "types": "cjs/index.d.ts",
8
7
  "dependencies": {
9
8
  "@bemoje/util": "latest",
10
9
  "@commander-js/extra-typings": "^11.1.0",
11
10
  "ansi-colors": "^4.1.3",
12
11
  "fs-extra": "^11.2.0",
13
- "is-async-function": "^2.0.0"
12
+ "is-async-function": "^2.0.0",
13
+ "tslib": "^2.6.2"
14
14
  },
15
15
  "license": "MIT",
16
16
  "keywords": [],
@@ -1,23 +0,0 @@
1
- import { Argument } from '@commander-js/extra-typings';
2
- import { ArgumentParserSelector } from './ArgumentParserSelector';
3
- import { ArgumentReader } from './ArgumentReader';
4
- import { ArgumentValidatorSelector } from './ArgumentValidatorSelector';
5
- import { CommandBuilder } from '../cmd/CommandBuilder';
6
- /**
7
- * Wrapper around the @see Argument class from 'commander'.
8
- */
9
- export declare class ArgumentBuilder {
10
- readonly cmd: CommandBuilder;
11
- readonly $: Argument;
12
- readonly index: number;
13
- constructor(cmd: CommandBuilder, name: string);
14
- get hasValidators(): boolean;
15
- get hasParser(): boolean;
16
- description(string: string): this;
17
- default(value: unknown, description?: string): this;
18
- choices(values: readonly string[]): this;
19
- get parser(): ArgumentParserSelector;
20
- get validator(): ArgumentValidatorSelector;
21
- get get(): ArgumentReader;
22
- }
23
- //# sourceMappingURL=ArgumentBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgumentBuilder.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/arg/ArgumentBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGtD;;GAEG;AACH,qBAAa,eAAe;IAId,QAAQ,CAAC,GAAG,EAAE,cAAc;IAHxC,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAA;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;gBAED,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM;IAOtD,IAAI,aAAa,YAEhB;IAED,IAAI,SAAS,YAEZ;IAED,WAAW,CAAC,MAAM,EAAE,MAAM;IAK1B,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM;IAK5C,OAAO,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE;IAKjC,IAAI,MAAM,2BAET;IAED,IAAI,SAAS,8BAEZ;IAED,IAAI,GAAG,mBAEN;CACF"}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArgumentBuilder = void 0;
4
- const extra_typings_1 = require("@commander-js/extra-typings");
5
- const ArgumentParserSelector_1 = require("./ArgumentParserSelector");
6
- const ArgumentReader_1 = require("./ArgumentReader");
7
- const ArgumentValidatorSelector_1 = require("./ArgumentValidatorSelector");
8
- const util_1 = require("@bemoje/util");
9
- /**
10
- * Wrapper around the @see Argument class from 'commander'.
11
- */
12
- class ArgumentBuilder {
13
- cmd;
14
- $;
15
- index;
16
- constructor(cmd, name) {
17
- this.cmd = cmd;
18
- this.$ = new extra_typings_1.Argument(name);
19
- this.index = cmd.meta.argValidators.length;
20
- cmd.meta.argValidators[this.index] = [];
21
- this.cmd.meta.argBuilders.push(this);
22
- }
23
- get hasValidators() {
24
- return this.cmd.meta.argValidators[this.index].length > 0;
25
- }
26
- get hasParser() {
27
- return this.cmd.meta.argParsers[this.index] !== undefined;
28
- }
29
- description(string) {
30
- this.$.description = string;
31
- return this;
32
- }
33
- default(value, description) {
34
- this.$.default(value, description);
35
- return this;
36
- }
37
- choices(values) {
38
- this.$.choices(values);
39
- return this;
40
- }
41
- get parser() {
42
- return new ArgumentParserSelector_1.ArgumentParserSelector(this);
43
- }
44
- get validator() {
45
- return new ArgumentValidatorSelector_1.ArgumentValidatorSelector(this);
46
- }
47
- get get() {
48
- return (0, util_1.realizeLazyProperty)(this, 'get', new ArgumentReader_1.ArgumentReader(this));
49
- }
50
- }
51
- exports.ArgumentBuilder = ArgumentBuilder;
52
- //# sourceMappingURL=ArgumentBuilder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgumentBuilder.js","sourceRoot":"","sources":["../../../../../packages/cli/src/arg/ArgumentBuilder.ts"],"names":[],"mappings":";;;AAAA,+DAAsD;AACtD,qEAAiE;AACjE,qDAAiD;AACjD,2EAAuE;AAEvE,uCAAkD;AAElD;;GAEG;AACH,MAAa,eAAe;IAIL;IAHZ,CAAC,CAAU;IACX,KAAK,CAAQ;IAEtB,YAAqB,GAAmB,EAAE,IAAY;QAAjC,QAAG,GAAH,GAAG,CAAgB;QACtC,IAAI,CAAC,CAAC,GAAG,IAAI,wBAAQ,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,K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Builder } from './ArgumentBuilder';
2
- import type { JsonValue } from '@bemoje/util';
3
- import { ParserSelector } from '../core/ParserSelector';
4
- import type { TStringParser } from '@bemoje/util';
5
- export declare class ArgumentParserSelector extends ParserSelector<ArgumentBuilder> {
6
- constructor(builder: ArgumentBuilder);
7
- custom<T extends JsonValue>(parser: TStringParser<T>): ArgumentBuilder;
8
- }
9
- //# sourceMappingURL=ArgumentParserSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgumentParserSelector.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/arg/ArgumentParserSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,qBAAa,sBAAuB,SAAQ,cAAc,CAAC,eAAe,CAAC;gBAC7D,OAAO,EAAE,eAAe;IAGpC,MAAM,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;CAIrD"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArgumentParserSelector = void 0;
4
- const ParserSelector_1 = require("../core/ParserSelector");
5
- class ArgumentParserSelector extends ParserSelector_1.ParserSelector {
6
- constructor(builder) {
7
- super(builder);
8
- }
9
- custom(parser) {
10
- this.builder.cmd.meta.argParsers[this.builder.index] = parser;
11
- return this.builder;
12
- }
13
- }
14
- exports.ArgumentParserSelector = ArgumentParserSelector;
15
- //# sourceMappingURL=ArgumentParserSelector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgumentParserSelector.js","sourceRoot":"","sources":["../../../../../packages/cli/src/arg/ArgumentParserSelector.ts"],"names":[],"mappings":";;;AAEA,2DAAuD;AAGvD,MAAa,sBAAuB,SAAQ,+BAA+B;IACzE,YAAY,OAAwB;QAClC,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;IACD,MAAM,CAAsB,MAAwB;QAClD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAA;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF;AARD,wDAQC"}
@@ -1,15 +0,0 @@
1
- import { ArgumentBuilder } from './ArgumentBuilder';
2
- export declare class ArgumentReader {
3
- protected readonly parent: ArgumentBuilder;
4
- constructor(parent: ArgumentBuilder);
5
- get $(): import("@commander-js/extra-typings").Argument<"", undefined, undefined, undefined, undefined>;
6
- get argument(): import("@commander-js/extra-typings").Argument<"", undefined, undefined, undefined, undefined>;
7
- get name(): string;
8
- get choices(): string[];
9
- get default(): any;
10
- get description(): string;
11
- get variadic(): boolean;
12
- get required(): boolean;
13
- get optional(): boolean;
14
- }
15
- //# sourceMappingURL=ArgumentReader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgumentReader.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/arg/ArgumentReader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,qBAAa,cAAc;IACb,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,eAAe;gBAAvB,MAAM,EAAE,eAAe;IAEtD,IAAI,CAAC,mGAEJ;IACD,IAAI,QAAQ,mGAEX;IACD,IAAI,IAAI,WAEP;IACD,IAAI,OAAO,aAEV;IACD,IAAI,OAAO,QAEV;IACD,IAAI,WAAW,WAEd;IACD,IAAI,QAAQ,YAEX;IACD,IAAI,QAAQ,YAEX;IACD,IAAI,QAAQ,YAEX;CACF"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArgumentReader = void 0;
4
- class ArgumentReader {
5
- parent;
6
- constructor(parent) {
7
- this.parent = parent;
8
- }
9
- get $() {
10
- return this.parent.$;
11
- }
12
- get argument() {
13
- return this.$;
14
- }
15
- get name() {
16
- return this.$.name();
17
- }
18
- get choices() {
19
- return this.$.argChoices;
20
- }
21
- get default() {
22
- return this.$.defaultValue;
23
- }
24
- get description() {
25
- return this.$.description;
26
- }
27
- get variadic() {
28
- return this.$.variadic;
29
- }
30
- get required() {
31
- return this.$.required;
32
- }
33
- get optional() {
34
- return !this.$.required;
35
- }
36
- }
37
- exports.ArgumentReader = ArgumentReader;
38
- //# sourceMappingURL=ArgumentReader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgumentReader.js","sourceRoot":"","sources":["../../../../../packages/cli/src/arg/ArgumentReader.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;IACM;IAA/B,YAA+B,MAAuB;QAAvB,WAAM,GAAN,MAAM,CAAiB;IAAG,CAAC;IAE1D,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAA;IACtB,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,CAAC,CAAA;IACf,CAAC;IACD,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;IACtB,CAAC;IACD,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,CAAC,CAAC,UAAU,CAAA;IAC1B,CAAC;IACD,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,CAAC,CAAC,YAAY,CAAA;IAC5B,CAAC;IACD,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,CAAC,CAAC,WAAW,CAAA;IAC3B,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAA;IACxB,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAA;IACxB,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAA;IACzB,CAAC;CACF;AA9BD,wCA8BC"}
@@ -1,8 +0,0 @@
1
- import { ArgumentBuilder } from './ArgumentBuilder';
2
- import type { TValidator } from '@bemoje/util';
3
- import { ValidatorSelector } from '../core/ValidatorSelector';
4
- export declare class ArgumentValidatorSelector extends ValidatorSelector<ArgumentBuilder> {
5
- constructor(builder: ArgumentBuilder);
6
- custom<T>(validator: TValidator<T>): ArgumentBuilder;
7
- }
8
- //# sourceMappingURL=ArgumentValidatorSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgumentValidatorSelector.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/arg/ArgumentValidatorSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D,qBAAa,yBAA0B,SAAQ,iBAAiB,CAAC,eAAe,CAAC;gBACnE,OAAO,EAAE,eAAe;IAGpC,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;CAInC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArgumentValidatorSelector = void 0;
4
- const util_1 = require("@bemoje/util");
5
- const ValidatorSelector_1 = require("../core/ValidatorSelector");
6
- class ArgumentValidatorSelector extends ValidatorSelector_1.ValidatorSelector {
7
- constructor(builder) {
8
- super(builder);
9
- }
10
- custom(validator) {
11
- (0, util_1.arrLast)(this.builder.cmd.meta.argValidators).push(validator);
12
- return this.builder;
13
- }
14
- }
15
- exports.ArgumentValidatorSelector = ArgumentValidatorSelector;
16
- //# sourceMappingURL=ArgumentValidatorSelector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArgumentValidatorSelector.js","sourceRoot":"","sources":["../../../../../packages/cli/src/arg/ArgumentValidatorSelector.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AAEtC,iEAA6D;AAE7D,MAAa,yBAA0B,SAAQ,qCAAkC;IAC/E,YAAY,OAAwB;QAClC,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;IACD,MAAM,CAAI,SAAwB;QAChC,IAAA,cAAO,EAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF;AARD,8DAQC"}
@@ -1,382 +0,0 @@
1
- import type { Any } from '@bemoje/util';
2
- import { ArgumentBuilder } from '../arg/ArgumentBuilder';
3
- import { CommandBuilderMetaData } from './CommandBuilderMetaData';
4
- import { CommandFeatureSelector } from './CommandFeatureSelector';
5
- import type { IConfig } from '../types/IConfig';
6
- import type { IPreset, IPresetPartial } from '../types/IPreset';
7
- import { JsonFile } from '../db/JsonFile';
8
- import { OptionBuilder } from '../opt/OptionBuilder';
9
- import { type AddHelpTextPosition, Argument, Command, CommanderError, type CommandUnknownOpts, type ErrorOptions, type HelpConfiguration, type HookEvent, Option, type OptionValues, type OptionValueSource, ParseOptions } from '@commander-js/extra-typings';
10
- import { type JsonValue } from '@bemoje/util';
11
- /**
12
- * Wrapper around the @see Command class, for more intuitive construction.
13
- */
14
- export declare class CommandBuilder<Args extends Any[] = unknown[], Opts extends OptionValues = OptionValues> {
15
- static dataDirectory: string;
16
- protected readonly features: CommandFeatureSelector;
17
- readonly parent: CommandBuilder | null;
18
- readonly $: Command;
19
- readonly meta: CommandBuilderMetaData<Args>;
20
- get db(): JsonFile;
21
- constructor(name: string, callback?: (this: CommandBuilder<Args, Opts>, cmd: CommandBuilder<Args, Opts>) => void, parent?: CommandBuilder, isNative?: boolean);
22
- setRecommended(): void;
23
- deleteDataFile(): void;
24
- /**
25
- * Set the program version to `str`.
26
- *
27
- * This method auto-registers the "-V, --version" flag
28
- * which will print the version number when passed.
29
- *
30
- * You can optionally supply the flags and description to override the defaults.
31
- */
32
- version(string: string): this;
33
- /**
34
- * Set the description. If more than one sentence or string is given,
35
- * then the first will be used as summary and the whole text as description.
36
- * @param lines - description lines
37
- */
38
- description(...lines: string[]): this;
39
- /**
40
- * Set an alias for the command.
41
- * You may call more than once to add multiple aliases.
42
- * Only the first alias is shown in the auto-generated help.
43
- */
44
- alias(alias: string): this;
45
- /**
46
- * Set aliases for the command. This overwrites all previously set aliases.
47
- * Only the first alias is shown in the auto-generated help.
48
- */
49
- aliases(...aliases: string[]): this;
50
- /**
51
- * Set the command usage.
52
- */
53
- usage(str: string): this;
54
- enableBuiltinOptions(options?: {
55
- debug?: boolean;
56
- disableColor?: boolean;
57
- disableStderr?: boolean;
58
- disableStdout?: boolean;
59
- }): this;
60
- /**
61
- * Create a new argument.
62
- * @param name - argument name
63
- * @param description - describe the argument
64
- * @param cb - callback to configure the argument
65
- */
66
- argument(name: string, description?: string): this;
67
- argument(name: string, cb: (opt: ArgumentBuilder, cmd: this) => void): this;
68
- /**
69
- * Define option with `flags`, `description`, and optional argument parsing function or `defaultValue` or both.
70
- * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space. A required
71
- * option-argument is indicated by `<>` and an optional option-argument by `[]`.
72
- * @example ```js
73
- * program
74
- * .option('-p, --pepper', 'add pepper')
75
- * .option('-p, --pizza-type <TYPE>', 'type of pizza') // required argument
76
- * .option('-c, --cheese [CHEESE]', 'add extra cheese') // optional
77
- * ```
78
- */
79
- option(flags: string, description?: string): this;
80
- option(flags: string, cb?: (opt: OptionBuilder, cmd: this) => void): this;
81
- /**
82
- * The same as .option() except that the option will be inherited by subcommands.
83
- */
84
- globalOption(flags: string, description?: string): this;
85
- globalOption(flags: string, cb?: (opt: OptionBuilder, cmd: this) => void): this;
86
- /**
87
- * Create a subcommand.
88
- * @param flags - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
89
- * @param description - describe the command
90
- */
91
- command<A extends Any[] = unknown[], O extends OptionValues = OptionValues>(name: string, cb: (this: CommandBuilder<A, O>, cmd: CommandBuilder<A, O>) => void): this;
92
- /**
93
- * Create a native subcommand.
94
- * @param flags - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
95
- * @param description - describe the command
96
- */
97
- nativeCommand<A extends Any[] = unknown[], O extends OptionValues = OptionValues>(name: string, cb: (this: CommandBuilder<A, O>, cmd: CommandBuilder<A, O>) => void): this;
98
- /**
99
- * Register callback function for the command to execute when invoked.
100
- */
101
- action(fn: (...args: any[]) => void | Promise<void>): this;
102
- usageExamples(...examples: {
103
- command: string;
104
- description?: string;
105
- }[]): this;
106
- errorHandler(fn: (this: Command, error: unknown, cmd: CommandBuilder<Args, Opts>) => void): this;
107
- appData(key: string, value: JsonValue): this;
108
- config(key: string, entry: IConfig<JsonValue>): this;
109
- preset(name: string, preset: IPresetPartial): this;
110
- presetsEnabled(boolean?: boolean): this;
111
- autoAssignMissingOptionFlags(boolean?: boolean): this;
112
- autoAssignSubCommandAliases(boolean?: boolean): this;
113
- /**
114
- * Allow excess command-arguments on the command line. Pass false to make excess arguments an error.
115
- *
116
- * @returns `this` command for chaining
117
- */
118
- allowExcessArguments(bool?: boolean): this;
119
- /**
120
- * Allow unknown options on the command line.
121
- *
122
- * @returns `this` command for chaining
123
- */
124
- allowUnknownOption(bool?: boolean): this;
125
- /**
126
- * Enable positional options. Positional means global options are specified before subcommands which lets
127
- * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions.
128
- *
129
- * The default behaviour is non-positional and global options may appear anywhere on the command line.
130
- *
131
- * @returns `this` command for chaining
132
- */
133
- enablePositionalOptions(positional?: boolean): this;
134
- /**
135
- * Pass through options that come after command-arguments rather than treat them as command-options,
136
- * so actual command-options come before command-arguments. Turning this on for a subcommand requires
137
- * positional options to have been enabled on the program (parent commands).
138
- *
139
- * The default behaviour is non-positional and options may appear before or after command-arguments.
140
- *
141
- * @returns `this` command for chaining
142
- */
143
- passThroughOptions(passThrough?: boolean): this;
144
- /**
145
- * Register callback to use as replacement for calling process.exit.
146
- */
147
- exitOverride(callback?: (err: CommanderError) => never | void): this;
148
- /**
149
- * Add hook for life cycle event.
150
- */
151
- hook(event: HookEvent, listener: (thisCommand: CommandUnknownOpts, actionCommand: CommandUnknownOpts) => void | Promise<void>): this;
152
- /**
153
- * You can customise the help by overriding Help properties using configureHelp(),
154
- * or with a subclass of Help by overriding createHelp().
155
- */
156
- configureHelp(configuration: HelpConfiguration): this;
157
- /**
158
- * Display the help or a custom message after an error occurs.
159
- */
160
- showHelpAfterError(displayHelp?: boolean | string): this;
161
- /**
162
- * Display suggestion of similar commands for unknown commands, or options for unknown options.
163
- */
164
- showSuggestionAfterError(displaySuggestion?: boolean): this;
165
- /**
166
- * Override default decision whether to add implicit help command.
167
- * @example ```
168
- * addHelpCommand() // force on
169
- * addHelpCommand(false); // force off
170
- * addHelpCommand('help [cmd]', 'display help for [cmd]'); // force on with custom details
171
- * ```
172
- * @returns `this` command for chaining
173
- */
174
- addHelpCommand(enableOrNameAndArgs?: string | boolean, description?: string): this;
175
- /**
176
- * Add additional text to be displayed with the built-in help.
177
- *
178
- * Position is 'before' or 'after' to affect just this command,
179
- * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.
180
- */
181
- addHelpText(position: AddHelpTextPosition, text: string): this;
182
- throwCommanderError(message: string, exitCode?: number, type?: string): never;
183
- hideGlobalOptions(...names: string[]): this;
184
- unhideGlobalOptions(...names: string[]): this;
185
- /**
186
- * Set the directory for searching for executable subcommands of this command.
187
- */
188
- executableDir(path: string): this;
189
- /**
190
- * Store option value.
191
- */
192
- setOptionValue(key: string, value: unknown): this;
193
- /**
194
- * Store option value and where the value came from.
195
- */
196
- setOptionValueWithSource(key: string, value: unknown, source: OptionValueSource): this;
197
- setDataFilepath(filepath: string): void;
198
- /**
199
- * Display error message and exit (or call exitOverride).
200
- */
201
- outputError(message: string, options?: ErrorOptions): void;
202
- /**
203
- * Output help information for this command.
204
- */
205
- outputHelp(): void;
206
- /**
207
- * Display error message and exit (or call exitOverride).
208
- */
209
- outputDebugMessage(event: string, getProps?: () => Record<string, unknown>): void;
210
- parseArguments(args: string[]): any[];
211
- /**
212
- * Parses (and validates) options using the parsers defined in the command builder.
213
- */
214
- parseOptions(opts: OptionValues): OptionValues;
215
- /**
216
- * Validate ALREADY PARSED args using the validators defined in the command builder.
217
- */
218
- assertValidArguments(parsedArgs: Any[]): any[];
219
- /**
220
- * Validate ALREADY PARSED options using the validators defined in the command builder.
221
- */
222
- assertValidOptions(parsedOptions: OptionValues): OptionValues;
223
- assertValidPreset(key: string, preset: IPreset): void;
224
- throwRatherThanExitProcess(): void;
225
- get name(): string;
226
- /**
227
- * Get the command at the root of the command tree.
228
- */
229
- get root(): CommandBuilder;
230
- get isRoot(): boolean;
231
- get arguments(): readonly Argument<"", undefined, undefined, undefined, undefined>[];
232
- get options(): readonly Option<"", undefined, undefined, undefined, false, undefined>[];
233
- get commander(): Command<[], {}>;
234
- get hasGrandChildren(): boolean;
235
- /**
236
- * Returns whether a command's last argument is variadic.
237
- */
238
- get isLastArgVariadic(): boolean;
239
- get jsonFilepath(): string;
240
- /**
241
- * Get the executable search directory.
242
- */
243
- getExecutableDir(): string | null;
244
- /**
245
- * Retrieve option value.
246
- */
247
- getOptionValue(key: string): Any;
248
- /**
249
- * Get source of option value.
250
- */
251
- getOptionValueSource(key: string): OptionValueSource | undefined;
252
- /**
253
- * Get source of option value. See also .optsWithGlobals().
254
- */
255
- getOptionValueSourceWithGlobals(key: string): OptionValueSource | undefined;
256
- getActionHandler(): (this: CommandBuilder<unknown[], OptionValues>, ...args: any[]) => void | Promise<void>;
257
- getDescription(): string;
258
- getSummary(): string;
259
- getVersion(): string;
260
- getAlias(): string;
261
- getAliases(): string[];
262
- /**
263
- * Get a commands prefix array based on all its parent/ancestor commands.
264
- */
265
- getPrefixArray(): string[];
266
- /**
267
- * Get a commands prefix string based on all its parent/ancestor commands.
268
- */
269
- getPrefixString(): string;
270
- getGlobalOptions(): Option[];
271
- getOwnAndGlobalOptions(): Option[];
272
- getChildrenIterator(options?: {
273
- includeSelf?: boolean;
274
- }): Generator<CommandBuilder>;
275
- getChildren(options?: {
276
- includeSelf?: boolean;
277
- }): CommandBuilder<unknown[], OptionValues>[];
278
- getAncestorsIterator(options?: {
279
- includeSelf?: boolean;
280
- }): Generator<CommandBuilder>;
281
- /**
282
- * Get a command's ancestors, optionally starting from the command itself.
283
- */
284
- getAncestors(options?: {
285
- includeSelf?: boolean;
286
- }): CommandBuilder[];
287
- getSiblingsIterator(): Generator<CommandBuilder<unknown[], OptionValues>, void, unknown>;
288
- /**
289
- * Returns an array of sibling CommandBuilder objects.
290
- */
291
- getSiblings(): CommandBuilder<unknown[], OptionValues>[];
292
- /**
293
- * Render the help string for the command.
294
- */
295
- getHelpInformation(): string;
296
- getOptsWithGlobals(): OptionValues;
297
- /**
298
- * Parse `argv`, setting options and invoking commands when defined.
299
- *
300
- * The default expectation is that the arguments are from node and have the application as argv[0]
301
- * and the script being run in argv[1], with user parameters after that.
302
- *
303
- * @example
304
- * ```
305
- * program.parse(process.argv);
306
- * program.parse(); // implicitly use process.argv and auto-detect node vs electron conventions
307
- * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
308
- * ```
309
- *
310
- * @returns `this` command for chaining
311
- */
312
- parse(argv?: readonly string[], options?: ParseOptions): this;
313
- /**
314
- * Parse `argv`, setting options and invoking commands when defined.
315
- *
316
- * Use parseAsync instead of parse if any of your action handlers are async. Returns a Promise.
317
- *
318
- * The default expectation is that the arguments are from node and have the application as argv[0]
319
- * and the script being run in argv[1], with user parameters after that.
320
- *
321
- * @example
322
- * ```
323
- * program.parseAsync(process.argv);
324
- * program.parseAsync(); // implicitly use process.argv and auto-detect node vs electron conventions
325
- * program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
326
- * ```
327
- *
328
- * @returns Promise
329
- */
330
- parseAsync(argv?: readonly string[], options?: ParseOptions): Promise<this>;
331
- protected getParsedValidArgsOptsWithPresets(): [Any[], OptionValues];
332
- protected getParsedValidArgsWithPresets(presetArgs: Any[][]): any[];
333
- protected getParsedValidOptsWithPresets(presetOpts: OptionValues[]): Record<string, any>;
334
- protected getPresetArgsAndOpts(): [presetArgs: string[][], presetOpts: OptionValues[], presetOrder: string[]];
335
- protected combineVariadicArgs(result: Any[]): any[];
336
- protected debugLogArgsOpts(args: Any[], opts: OptionValues, presetArgs: string[][], presetOpts: OptionValues[], presetOrder: string[]): void;
337
- protected hideOptionsWithDefaultOrNoValueOrArePresets(opts: OptionValues): OptionValues;
338
- protected handleOutputOptions(): void;
339
- protected padArgsWithUndefinedUntilExpectedLength(args: Any[]): any[];
340
- protected assertPresetArgsOptional(args: Any[]): void;
341
- protected addUtilCommands(): void;
342
- /**
343
- * Makes aliases for the command.
344
- * The idea is to be able to navigate the command tree by only typing the first letter(s) of the command names.
345
- *
346
- * Example: A command 'cola' would get these aliases: ['c', 'co', 'col'].
347
- * However, if there are namespace clashes with sibling subcommands that start with the same letter,
348
- * eg. like 'cola' and 'coal' where the first two letters clash, cola's aliases are reduced to only ['col'] and similarly for 'coal'.
349
- *
350
- * This method creates the aliases, ensuring there are no clashes with sublings, why it is important that the
351
- * entire command tree is built before invoking this method.
352
- */
353
- assignSubCommandAliases(): this;
354
- /**
355
- * Automatically set 'short' and 'long' names to options that don't have one assigned yet.
356
- *
357
- * First, it tries to assign a short name based on the first letter of the option's attribute name
358
- * Both lower and upper case are tried. If these is not available, the next letter of the option name is tried.
359
- *
360
- * If none of the letters of the option name are available, the option is skipped until all other
361
- * options have had letters from their names attempted assigned.
362
- * Those that remain are assigned the first available letter of the alphabet + 0-9.
363
- * If there are 64 options for the command and no more alphanumeric characters are available,
364
- * the option is not assigned a short name.
365
- */
366
- assignMissingOptionFlags(): void;
367
- protected assertNoDuplicateCommandNames(): void;
368
- protected hasIdenticalParentOption(option: Option): boolean;
369
- protected assertNoDuplicateOptionNames(): void;
370
- protected initializeActionWrapper(isAsync?: boolean): void;
371
- protected initializeHelp(): void;
372
- protected inheritParentHiddenGlobals(): void;
373
- protected assertCommandNameNotReserved(name: string): void;
374
- }
375
- export declare const commanderBackRefs: WeakMap<Command<any, any>, CommandBuilder<any, any>>;
376
- declare module '@commander-js/extra-typings' {
377
- interface Command {
378
- get builder(): CommandBuilder;
379
- }
380
- }
381
- export declare function CLI(name: string, cb: (cmd: CommandBuilder) => void): CommandBuilder<unknown[], OptionValues>;
382
- //# sourceMappingURL=CommandBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommandBuilder.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/cmd/CommandBuilder.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAIxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAIjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAM/D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAQpD,OAAO,EACL,KAAK,mBAAmB,EACxB,QAAQ,EACR,OAAO,EACP,cAAc,EACd,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAEd,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,YAAY,EACb,MAAM,6BAA6B,CAAA;AACpC,OAAO,EA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