@nu-art/commando 0.300.8 → 0.400.0

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 (72) hide show
  1. package/cli-params/CLIParamsResolver.d.ts +1 -1
  2. package/cli-params/CLIParamsResolver.js +30 -31
  3. package/cli-params/CLIParamsResolver.js.map +1 -0
  4. package/cli-params/consts.d.ts +1 -1
  5. package/cli-params/consts.js +11 -15
  6. package/cli-params/consts.js.map +1 -0
  7. package/cli-params/types.d.ts +1 -0
  8. package/cli-params/types.js +2 -2
  9. package/cli-params/types.js.map +1 -0
  10. package/package.json +17 -13
  11. package/shell/core/BaseCommando.d.ts +2 -2
  12. package/shell/core/BaseCommando.js +12 -14
  13. package/shell/core/BaseCommando.js.map +1 -0
  14. package/shell/core/CliError.js +10 -8
  15. package/shell/core/CliError.js.map +1 -0
  16. package/shell/core/CommandBuilder.js +41 -40
  17. package/shell/core/CommandBuilder.js.map +1 -0
  18. package/shell/core/CommandoPool.d.ts +9 -0
  19. package/shell/core/CommandoPool.js +15 -0
  20. package/shell/core/CommandoPool.js.map +1 -0
  21. package/shell/core/class-merger.js +3 -6
  22. package/shell/core/class-merger.js.map +1 -0
  23. package/shell/index.d.ts +2 -2
  24. package/shell/index.js +3 -18
  25. package/shell/index.js.map +1 -0
  26. package/shell/interactive/CommandoInteractive.d.ts +12 -15
  27. package/shell/interactive/CommandoInteractive.js +88 -72
  28. package/shell/interactive/CommandoInteractive.js.map +1 -0
  29. package/shell/interactive/InteractiveShell.d.ts +14 -16
  30. package/shell/interactive/InteractiveShell.js +135 -88
  31. package/shell/interactive/InteractiveShell.js.map +1 -0
  32. package/shell/plugins/basic.d.ts +2 -2
  33. package/shell/plugins/basic.js +8 -11
  34. package/shell/plugins/basic.js.map +1 -0
  35. package/shell/plugins/git.d.ts +3 -3
  36. package/shell/plugins/git.js +30 -36
  37. package/shell/plugins/git.js.map +1 -0
  38. package/shell/plugins/nvm.d.ts +3 -3
  39. package/shell/plugins/nvm.js +22 -28
  40. package/shell/plugins/nvm.js.map +1 -0
  41. package/shell/plugins/pnpm.d.ts +4 -4
  42. package/shell/plugins/pnpm.js +8 -11
  43. package/shell/plugins/pnpm.js.map +1 -0
  44. package/shell/plugins/programming.d.ts +2 -2
  45. package/shell/plugins/programming.js +3 -6
  46. package/shell/plugins/programming.js.map +1 -0
  47. package/shell/plugins/python.d.ts +3 -3
  48. package/shell/plugins/python.js +9 -12
  49. package/shell/plugins/python.js.map +1 -0
  50. package/shell/services/nvm.d.ts +1 -1
  51. package/shell/services/nvm.js +62 -88
  52. package/shell/services/nvm.js.map +1 -0
  53. package/shell/services/pnpm.d.ts +3 -3
  54. package/shell/services/pnpm.js +54 -56
  55. package/shell/services/pnpm.js.map +1 -0
  56. package/shell/simple/Commando.d.ts +2 -2
  57. package/shell/simple/Commando.js +15 -18
  58. package/shell/simple/Commando.js.map +1 -0
  59. package/shell/simple/SimpleShell.js +34 -33
  60. package/shell/simple/SimpleShell.js.map +1 -0
  61. package/shell/tools.js +4 -30
  62. package/shell/tools.js.map +1 -0
  63. package/shell/types.d.ts +1 -1
  64. package/shell/types.js +2 -2
  65. package/shell/types.js.map +1 -0
  66. package/console/ConsoleContainer.d.ts +0 -89
  67. package/console/ConsoleContainer.js +0 -145
  68. package/console/ConsoleScreen.d.ts +0 -21
  69. package/console/ConsoleScreen.js +0 -21
  70. package/console/types.d.ts +0 -61
  71. package/console/types.js +0 -72
  72. package/tsconfig.json +0 -23
@@ -1,61 +0,0 @@
1
- import * as blessed from 'neo-blessed';
2
- import { Widgets } from 'blessed';
3
- /**
4
- * A collection of Blessed elements for easy access.
5
- */
6
- export declare const BlessedElements: {
7
- screen: typeof blessed.screen;
8
- box: typeof blessed.box;
9
- text: typeof blessed.text;
10
- list: typeof blessed.list;
11
- log: typeof blessed.log;
12
- textarea: typeof blessed.textarea;
13
- textbox: typeof blessed.textbox;
14
- form: typeof blessed.form;
15
- progressbar: typeof blessed.progressbar;
16
- table: typeof blessed.table;
17
- listTable: typeof blessed.listtable;
18
- prompt: typeof blessed.prompt;
19
- message: typeof blessed.message;
20
- loading: typeof blessed.loading;
21
- radioSet: typeof blessed.radioset;
22
- radiobutton: typeof blessed.radiobutton;
23
- checkbox: typeof blessed.checkbox;
24
- input: typeof blessed.input;
25
- button: typeof blessed.button;
26
- line: typeof blessed.line;
27
- scrollableBox: typeof blessed.scrollablebox;
28
- scrollableText: typeof blessed.scrollabletext;
29
- terminal: typeof blessed.terminal;
30
- bigText: typeof blessed.bigtext;
31
- listBar: typeof blessed.listbar;
32
- fileManager: typeof blessed.filemanager;
33
- };
34
- type Created = typeof BlessedElements;
35
- /**
36
- * A type representing the keys of BlessedElements.
37
- */
38
- export type BlessedWidgetsType = keyof Created;
39
- /**
40
- * A type representing the options for each Blessed widget.
41
- */
42
- export type BlessedWidgetOptions = {
43
- [Type in keyof Created]: Parameters<Created[Type]>[0];
44
- };
45
- /**
46
- * A type representing each Blessed widget.
47
- */
48
- export type BlessedWidget = {
49
- [Type in keyof Created]: ReturnType<Created[Type]>;
50
- };
51
- /**
52
- * Creates a Blessed widget of the specified type with the given properties and parent node.
53
- *
54
- * @template WidgetType - The type of the widget to create.
55
- * @param {WidgetType} type - The type of the widget to create.
56
- * @param {BlessedWidgetOptions[WidgetType]} props - The properties to apply to the widget.
57
- * @param {Widgets.Node} [parent] - The parent node for the widget.
58
- * @returns {BlessedWidget[WidgetType]} The created widget.
59
- */
60
- export declare function createBlessedWidget<WidgetType extends BlessedWidgetsType>(type: WidgetType, props?: BlessedWidgetOptions[WidgetType], parent?: Widgets.Node): BlessedWidget[WidgetType];
61
- export {};
package/console/types.js DELETED
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.BlessedElements = void 0;
27
- exports.createBlessedWidget = createBlessedWidget;
28
- const blessed = __importStar(require("neo-blessed"));
29
- /**
30
- * A collection of Blessed elements for easy access.
31
- */
32
- exports.BlessedElements = {
33
- screen: blessed.screen,
34
- box: blessed.box,
35
- text: blessed.text,
36
- list: blessed.list,
37
- log: blessed.log,
38
- textarea: blessed.textarea,
39
- textbox: blessed.textbox,
40
- form: blessed.form,
41
- progressbar: blessed.progressbar,
42
- table: blessed.table,
43
- listTable: blessed.listtable,
44
- prompt: blessed.prompt,
45
- message: blessed.message,
46
- loading: blessed.loading,
47
- radioSet: blessed.radioset,
48
- radiobutton: blessed.radiobutton,
49
- checkbox: blessed.checkbox,
50
- input: blessed.input,
51
- button: blessed.button,
52
- line: blessed.line,
53
- scrollableBox: blessed.scrollablebox,
54
- scrollableText: blessed.scrollabletext,
55
- terminal: blessed.terminal,
56
- bigText: blessed.bigtext,
57
- listBar: blessed.listbar,
58
- fileManager: blessed.filemanager,
59
- };
60
- /**
61
- * Creates a Blessed widget of the specified type with the given properties and parent node.
62
- *
63
- * @template WidgetType - The type of the widget to create.
64
- * @param {WidgetType} type - The type of the widget to create.
65
- * @param {BlessedWidgetOptions[WidgetType]} props - The properties to apply to the widget.
66
- * @param {Widgets.Node} [parent] - The parent node for the widget.
67
- * @returns {BlessedWidget[WidgetType]} The created widget.
68
- */
69
- function createBlessedWidget(type, props = {}, parent) {
70
- const element = exports.BlessedElements[type];
71
- return element(Object.assign(Object.assign({}, props), { parent }));
72
- }
package/tsconfig.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2017",
4
- "jsx": "react",
5
- "lib": [
6
- "es5",
7
- "es6",
8
- "es7",
9
- "dom"
10
- ],
11
- "declaration": true,
12
- "resolveJsonModule": true,
13
- "esModuleInterop": true,
14
- "experimentalDecorators": true,
15
- "moduleResolution": "node",
16
- "noUnusedLocals": true,
17
- "module": "commonjs",
18
- "sourceMap": true,
19
- "strict": true
20
- },
21
- "esModuleInterop": true,
22
- "module": "ES2020"
23
- }