@flowscripter/dynamic-cli-framework 1.6.1 → 1.6.2
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.
- package/cli-plugin.ts +77 -0
- package/dist/cli-plugin.d.ts +39 -0
- package/dist/cli-plugin.d.ts.map +1 -1
- package/dist/cli-plugin.js +155 -1
- package/dist/index.js +178 -164
- package/dist/src/api/service/core/CompletionService.d.ts +1 -1
- package/dist/src/api/service/core/CompletionService.d.ts.map +1 -1
- package/dist/src/command/CompletionCommand.d.ts.map +1 -1
- package/dist/src/command/PluginCommand.d.ts.map +1 -1
- package/dist/src/service/completion/CompletionServiceProvider.d.ts.map +1 -1
- package/dist/src/service/completion/DefaultCompletionService.d.ts +1 -1
- package/dist/src/service/completion/DefaultCompletionService.d.ts.map +1 -1
- package/dist/src/service/completion/shell/ShellHandler.d.ts +1 -1
- package/dist/src/service/completion/shell/ShellHandler.d.ts.map +1 -1
- package/dist/src/service/completion/shell/bash.d.ts +1 -1
- package/dist/src/service/completion/shell/bash.d.ts.map +1 -1
- package/dist/src/service/completion/shell/fish.d.ts +1 -1
- package/dist/src/service/completion/shell/fish.d.ts.map +1 -1
- package/dist/src/service/completion/shell/powershell.d.ts +1 -1
- package/dist/src/service/completion/shell/powershell.d.ts.map +1 -1
- package/dist/src/service/completion/shell/zsh.d.ts +1 -1
- package/dist/src/service/completion/shell/zsh.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/api/service/core/CompletionService.ts +1 -1
- package/src/command/CompletionCommand.ts +6 -1
- package/src/command/PluginCommand.ts +20 -7
- package/src/service/completion/CompletionServiceProvider.ts +6 -1
- package/src/service/completion/DefaultCompletionService.ts +2 -2
- package/src/service/completion/shell/ShellHandler.ts +1 -1
- package/src/service/completion/shell/bash.ts +2 -2
- package/src/service/completion/shell/fish.ts +2 -2
- package/src/service/completion/shell/powershell.ts +5 -3
- package/src/service/completion/shell/zsh.ts +2 -2
package/cli-plugin.ts
CHANGED
|
@@ -14,3 +14,80 @@ export { ArgumentValueTypeName } from "./src/api/argument/ArgumentValueTypes.ts"
|
|
|
14
14
|
export type { default as Option } from "./src/api/argument/Option.ts";
|
|
15
15
|
export type { default as Positional } from "./src/api/argument/Positional.ts";
|
|
16
16
|
export type { ExtensionDescriptor, ExtensionFactory } from "@flowscripter/dynamic-plugin-framework";
|
|
17
|
+
|
|
18
|
+
// Core Service IDs and types
|
|
19
|
+
export { ASCII_BANNER_GENERATOR_SERVICE_ID } from "./src/api/service/core/AsciiBannerGeneratorService.ts";
|
|
20
|
+
export type { default as AsciiBannerGeneratorService } from "./src/api/service/core/AsciiBannerGeneratorService.ts";
|
|
21
|
+
export type {
|
|
22
|
+
BannerColorEffects,
|
|
23
|
+
BannerGenerateOptions,
|
|
24
|
+
ColorEffect,
|
|
25
|
+
ColorEffectDirection,
|
|
26
|
+
FixedColorEffect,
|
|
27
|
+
GradientColorEffect,
|
|
28
|
+
RainbowColorEffect,
|
|
29
|
+
} from "./src/api/service/core/AsciiBannerGeneratorService.ts";
|
|
30
|
+
|
|
31
|
+
export { KEY_VALUE_SERVICE_ID } from "./src/api/service/core/KeyValueService.ts";
|
|
32
|
+
export { SECRET_SENTINEL_PREFIX } from "./src/api/service/core/KeyValueService.ts";
|
|
33
|
+
export type { default as KeyValueService } from "./src/api/service/core/KeyValueService.ts";
|
|
34
|
+
export type { default as SecretService } from "./src/api/service/core/SecretService.ts";
|
|
35
|
+
|
|
36
|
+
export { PRINTER_SERVICE_ID } from "./src/api/service/core/PrinterService.ts";
|
|
37
|
+
export type { default as PrinterService } from "./src/api/service/core/PrinterService.ts";
|
|
38
|
+
export { Icon, Level, ProgressStyle, SpinnerStyle } from "./src/api/service/core/PrinterService.ts";
|
|
39
|
+
|
|
40
|
+
export { SHUTDOWN_SERVICE_ID } from "./src/api/service/core/ShutdownService.ts";
|
|
41
|
+
export type { default as ShutdownService } from "./src/api/service/core/ShutdownService.ts";
|
|
42
|
+
|
|
43
|
+
export { SYNTAX_HIGHLIGHTER_SERVICE_ID } from "./src/api/service/core/SyntaxHighlighterService.ts";
|
|
44
|
+
export type { default as SyntaxHighlighterService } from "./src/api/service/core/SyntaxHighlighterService.ts";
|
|
45
|
+
export type { ColorScheme } from "./src/api/service/core/SyntaxHighlighterService.ts";
|
|
46
|
+
|
|
47
|
+
export { PRETTY_PRINTER_SERVICE_ID } from "./src/api/service/core/PrettyPrinterService.ts";
|
|
48
|
+
export type { default as PrettyPrinterService } from "./src/api/service/core/PrettyPrinterService.ts";
|
|
49
|
+
|
|
50
|
+
export { IMAGE_PRINTER_SERVICE_ID } from "./src/api/service/core/ImagePrinterService.ts";
|
|
51
|
+
export type { default as ImagePrinterService } from "./src/api/service/core/ImagePrinterService.ts";
|
|
52
|
+
|
|
53
|
+
export { TREE_PRINTER_SERVICE_ID } from "./src/api/service/core/TreePrinterService.ts";
|
|
54
|
+
export type { default as TreePrinterService } from "./src/api/service/core/TreePrinterService.ts";
|
|
55
|
+
export type { TreeNode } from "./src/api/service/core/TreePrinterService.ts";
|
|
56
|
+
|
|
57
|
+
export { TABLE_GENERATOR_SERVICE_ID } from "./src/api/service/core/TableGeneratorService.ts";
|
|
58
|
+
export type { default as TableGeneratorService } from "./src/api/service/core/TableGeneratorService.ts";
|
|
59
|
+
export {
|
|
60
|
+
Align,
|
|
61
|
+
type CellOptions,
|
|
62
|
+
type ColumnOptions,
|
|
63
|
+
type RowOptions,
|
|
64
|
+
type TableOptions,
|
|
65
|
+
} from "./src/api/service/core/TableGeneratorService.ts";
|
|
66
|
+
export { default as Table } from "./src/api/service/core/Table.ts";
|
|
67
|
+
|
|
68
|
+
export { DATA_DUMP_GENERATOR_SERVICE_ID } from "./src/api/service/core/DataDumpGeneratorService.ts";
|
|
69
|
+
export type { default as DataDumpGeneratorService } from "./src/api/service/core/DataDumpGeneratorService.ts";
|
|
70
|
+
export {
|
|
71
|
+
type ByteRangeColor,
|
|
72
|
+
DumpFormat,
|
|
73
|
+
type HexDumpGenerateOptions,
|
|
74
|
+
} from "./src/api/service/core/DataDumpGeneratorService.ts";
|
|
75
|
+
|
|
76
|
+
export { COMPLETION_SERVICE_ID } from "./src/api/service/core/CompletionService.ts";
|
|
77
|
+
export type { default as CompletionService } from "./src/api/service/core/CompletionService.ts";
|
|
78
|
+
export { type CompletionItem, ShellType } from "./src/api/service/core/CompletionService.ts";
|
|
79
|
+
|
|
80
|
+
export { PROMPTER_SERVICE_ID } from "./src/api/service/core/PrompterService.ts";
|
|
81
|
+
export type { default as PrompterService } from "./src/api/service/core/PrompterService.ts";
|
|
82
|
+
export {
|
|
83
|
+
type Prompt,
|
|
84
|
+
type PromptOption,
|
|
85
|
+
type PromptResult,
|
|
86
|
+
PromptType,
|
|
87
|
+
} from "./src/api/service/core/PrompterService.ts";
|
|
88
|
+
|
|
89
|
+
export { ARGUMENT_PROMPTER_SERVICE_ID } from "./src/api/service/core/ArgumentPrompterService.ts";
|
|
90
|
+
export type { default as ArgumentPrompterService } from "./src/api/service/core/ArgumentPrompterService.ts";
|
|
91
|
+
|
|
92
|
+
export { PLUGIN_SERVICE_ID } from "./src/api/service/core/PluginService.ts";
|
|
93
|
+
export type { default as PluginService } from "./src/api/service/core/PluginService.ts";
|
package/dist/cli-plugin.d.ts
CHANGED
|
@@ -14,4 +14,43 @@ export { ArgumentValueTypeName } from "./src/api/argument/ArgumentValueTypes.ts"
|
|
|
14
14
|
export type { default as Option } from "./src/api/argument/Option.ts";
|
|
15
15
|
export type { default as Positional } from "./src/api/argument/Positional.ts";
|
|
16
16
|
export type { ExtensionDescriptor, ExtensionFactory } from "@flowscripter/dynamic-plugin-framework";
|
|
17
|
+
export { ASCII_BANNER_GENERATOR_SERVICE_ID } from "./src/api/service/core/AsciiBannerGeneratorService.ts";
|
|
18
|
+
export type { default as AsciiBannerGeneratorService } from "./src/api/service/core/AsciiBannerGeneratorService.ts";
|
|
19
|
+
export type { BannerColorEffects, BannerGenerateOptions, ColorEffect, ColorEffectDirection, FixedColorEffect, GradientColorEffect, RainbowColorEffect, } from "./src/api/service/core/AsciiBannerGeneratorService.ts";
|
|
20
|
+
export { KEY_VALUE_SERVICE_ID } from "./src/api/service/core/KeyValueService.ts";
|
|
21
|
+
export { SECRET_SENTINEL_PREFIX } from "./src/api/service/core/KeyValueService.ts";
|
|
22
|
+
export type { default as KeyValueService } from "./src/api/service/core/KeyValueService.ts";
|
|
23
|
+
export type { default as SecretService } from "./src/api/service/core/SecretService.ts";
|
|
24
|
+
export { PRINTER_SERVICE_ID } from "./src/api/service/core/PrinterService.ts";
|
|
25
|
+
export type { default as PrinterService } from "./src/api/service/core/PrinterService.ts";
|
|
26
|
+
export { Icon, Level, ProgressStyle, SpinnerStyle } from "./src/api/service/core/PrinterService.ts";
|
|
27
|
+
export { SHUTDOWN_SERVICE_ID } from "./src/api/service/core/ShutdownService.ts";
|
|
28
|
+
export type { default as ShutdownService } from "./src/api/service/core/ShutdownService.ts";
|
|
29
|
+
export { SYNTAX_HIGHLIGHTER_SERVICE_ID } from "./src/api/service/core/SyntaxHighlighterService.ts";
|
|
30
|
+
export type { default as SyntaxHighlighterService } from "./src/api/service/core/SyntaxHighlighterService.ts";
|
|
31
|
+
export type { ColorScheme } from "./src/api/service/core/SyntaxHighlighterService.ts";
|
|
32
|
+
export { PRETTY_PRINTER_SERVICE_ID } from "./src/api/service/core/PrettyPrinterService.ts";
|
|
33
|
+
export type { default as PrettyPrinterService } from "./src/api/service/core/PrettyPrinterService.ts";
|
|
34
|
+
export { IMAGE_PRINTER_SERVICE_ID } from "./src/api/service/core/ImagePrinterService.ts";
|
|
35
|
+
export type { default as ImagePrinterService } from "./src/api/service/core/ImagePrinterService.ts";
|
|
36
|
+
export { TREE_PRINTER_SERVICE_ID } from "./src/api/service/core/TreePrinterService.ts";
|
|
37
|
+
export type { default as TreePrinterService } from "./src/api/service/core/TreePrinterService.ts";
|
|
38
|
+
export type { TreeNode } from "./src/api/service/core/TreePrinterService.ts";
|
|
39
|
+
export { TABLE_GENERATOR_SERVICE_ID } from "./src/api/service/core/TableGeneratorService.ts";
|
|
40
|
+
export type { default as TableGeneratorService } from "./src/api/service/core/TableGeneratorService.ts";
|
|
41
|
+
export { Align, type CellOptions, type ColumnOptions, type RowOptions, type TableOptions, } from "./src/api/service/core/TableGeneratorService.ts";
|
|
42
|
+
export { default as Table } from "./src/api/service/core/Table.ts";
|
|
43
|
+
export { DATA_DUMP_GENERATOR_SERVICE_ID } from "./src/api/service/core/DataDumpGeneratorService.ts";
|
|
44
|
+
export type { default as DataDumpGeneratorService } from "./src/api/service/core/DataDumpGeneratorService.ts";
|
|
45
|
+
export { type ByteRangeColor, DumpFormat, type HexDumpGenerateOptions, } from "./src/api/service/core/DataDumpGeneratorService.ts";
|
|
46
|
+
export { COMPLETION_SERVICE_ID } from "./src/api/service/core/CompletionService.ts";
|
|
47
|
+
export type { default as CompletionService } from "./src/api/service/core/CompletionService.ts";
|
|
48
|
+
export { type CompletionItem, ShellType } from "./src/api/service/core/CompletionService.ts";
|
|
49
|
+
export { PROMPTER_SERVICE_ID } from "./src/api/service/core/PrompterService.ts";
|
|
50
|
+
export type { default as PrompterService } from "./src/api/service/core/PrompterService.ts";
|
|
51
|
+
export { type Prompt, type PromptOption, type PromptResult, PromptType, } from "./src/api/service/core/PrompterService.ts";
|
|
52
|
+
export { ARGUMENT_PROMPTER_SERVICE_ID } from "./src/api/service/core/ArgumentPrompterService.ts";
|
|
53
|
+
export type { default as ArgumentPrompterService } from "./src/api/service/core/ArgumentPrompterService.ts";
|
|
54
|
+
export { PLUGIN_SERVICE_ID } from "./src/api/service/core/PluginService.ts";
|
|
55
|
+
export type { default as PluginService } from "./src/api/service/core/PluginService.ts";
|
|
17
56
|
//# sourceMappingURL=cli-plugin.d.ts.map
|
package/dist/cli-plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-plugin.d.ts","sourceRoot":"","sources":["../cli-plugin.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OA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iC,CAAC;AAEnE,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,YAAY,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AAC9G,OAAO,EACL,KAAK,cAAc,EACnB,UAAU,EACV,KAAK,sBAAsB,GAC5B,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,YAAY,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,KAAK,cAAc,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAE7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,YAAY,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,UAAU,GACX,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACjG,YAAY,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,mDAAmD,CAAC;AAE5G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,YAAY,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC"}
|
package/dist/cli-plugin.js
CHANGED
|
@@ -62,8 +62,162 @@ var ComplexValueTypeName;
|
|
|
62
62
|
((ComplexValueTypeName2) => {
|
|
63
63
|
ComplexValueTypeName2[ComplexValueTypeName2["COMPLEX"] = 5] = "COMPLEX";
|
|
64
64
|
})(ComplexValueTypeName ||= {});
|
|
65
|
+
// src/api/service/core/AsciiBannerGeneratorService.ts
|
|
66
|
+
var ASCII_BANNER_GENERATOR_SERVICE_ID = "@flowscripter/dynamic-cli-framework/ascii-banner-generator-service";
|
|
67
|
+
// src/api/service/core/KeyValueService.ts
|
|
68
|
+
var KEY_VALUE_SERVICE_ID = "@flowscripter/dynamic-cli-framework/key-value-service";
|
|
69
|
+
var SECRET_SENTINEL_PREFIX = "__SECRET__:";
|
|
70
|
+
// src/api/service/core/PrinterService.ts
|
|
71
|
+
var PRINTER_SERVICE_ID = "@flowscripter/dynamic-cli-framework/printer-service";
|
|
72
|
+
var Level;
|
|
73
|
+
((Level2) => {
|
|
74
|
+
Level2[Level2["DEBUG"] = 0] = "DEBUG";
|
|
75
|
+
Level2[Level2["INFO"] = 1] = "INFO";
|
|
76
|
+
Level2[Level2["WARN"] = 2] = "WARN";
|
|
77
|
+
Level2[Level2["ERROR"] = 3] = "ERROR";
|
|
78
|
+
})(Level ||= {});
|
|
79
|
+
var SpinnerStyle;
|
|
80
|
+
((SpinnerStyle2) => {
|
|
81
|
+
SpinnerStyle2["BOX"] = "BOX";
|
|
82
|
+
SpinnerStyle2["STAR"] = "STAR";
|
|
83
|
+
})(SpinnerStyle ||= {});
|
|
84
|
+
var ProgressStyle;
|
|
85
|
+
((ProgressStyle2) => {
|
|
86
|
+
ProgressStyle2["STROKE"] = "STROKE";
|
|
87
|
+
ProgressStyle2["FILL"] = "FILL";
|
|
88
|
+
})(ProgressStyle ||= {});
|
|
89
|
+
var Icon;
|
|
90
|
+
((Icon2) => {
|
|
91
|
+
Icon2[Icon2["SUCCESS"] = 0] = "SUCCESS";
|
|
92
|
+
Icon2[Icon2["FAILURE"] = 1] = "FAILURE";
|
|
93
|
+
Icon2[Icon2["ALERT"] = 2] = "ALERT";
|
|
94
|
+
Icon2[Icon2["INFORMATION"] = 3] = "INFORMATION";
|
|
95
|
+
})(Icon ||= {});
|
|
96
|
+
// src/api/service/core/ShutdownService.ts
|
|
97
|
+
var SHUTDOWN_SERVICE_ID = "@flowscripter/dynamic-cli-framework/shutdown-service";
|
|
98
|
+
// src/api/service/core/SyntaxHighlighterService.ts
|
|
99
|
+
var SYNTAX_HIGHLIGHTER_SERVICE_ID = "@flowscripter/dynamic-cli-framework/syntax-highlighter-service";
|
|
100
|
+
// src/api/service/core/PrettyPrinterService.ts
|
|
101
|
+
var PRETTY_PRINTER_SERVICE_ID = "@flowscripter/dynamic-cli-framework/pretty-printer-service";
|
|
102
|
+
// src/api/service/core/ImagePrinterService.ts
|
|
103
|
+
var IMAGE_PRINTER_SERVICE_ID = "@flowscripter/dynamic-cli-framework/image-printer-service";
|
|
104
|
+
// src/api/service/core/TreePrinterService.ts
|
|
105
|
+
var TREE_PRINTER_SERVICE_ID = "@flowscripter/dynamic-cli-framework/tree-printer-service";
|
|
106
|
+
// src/api/service/core/TableGeneratorService.ts
|
|
107
|
+
var TABLE_GENERATOR_SERVICE_ID = "@flowscripter/dynamic-cli-framework/table-generator-service";
|
|
108
|
+
var Align;
|
|
109
|
+
((Align2) => {
|
|
110
|
+
Align2[Align2["LEFT"] = 0] = "LEFT";
|
|
111
|
+
Align2[Align2["CENTER"] = 1] = "CENTER";
|
|
112
|
+
Align2[Align2["RIGHT"] = 2] = "RIGHT";
|
|
113
|
+
})(Align ||= {});
|
|
114
|
+
// src/api/service/core/Table.ts
|
|
115
|
+
class Table {
|
|
116
|
+
rowCount;
|
|
117
|
+
columnCount;
|
|
118
|
+
options;
|
|
119
|
+
#columnOptions = new Map;
|
|
120
|
+
#rowOptions = new Map;
|
|
121
|
+
#cells = new Map;
|
|
122
|
+
constructor(rowCount, columnCount, options) {
|
|
123
|
+
this.rowCount = rowCount;
|
|
124
|
+
this.columnCount = columnCount;
|
|
125
|
+
this.options = options ?? {};
|
|
126
|
+
}
|
|
127
|
+
row(rowIndex, rowOptions) {
|
|
128
|
+
if (rowIndex < 0 || rowIndex >= this.rowCount) {
|
|
129
|
+
throw new Error(`Row index ${rowIndex} out of bounds [0, ${this.rowCount})`);
|
|
130
|
+
}
|
|
131
|
+
this.#rowOptions.set(rowIndex, rowOptions);
|
|
132
|
+
return this;
|
|
133
|
+
}
|
|
134
|
+
column(columnIndex, columnOptions) {
|
|
135
|
+
if (columnIndex < 0 || columnIndex >= this.columnCount) {
|
|
136
|
+
throw new Error(`Column index ${columnIndex} out of bounds [0, ${this.columnCount})`);
|
|
137
|
+
}
|
|
138
|
+
this.#columnOptions.set(columnIndex, columnOptions);
|
|
139
|
+
return this;
|
|
140
|
+
}
|
|
141
|
+
cell(rowIndex, columnIndex, contents, cellOptions) {
|
|
142
|
+
if (rowIndex < 0 || rowIndex >= this.rowCount) {
|
|
143
|
+
throw new Error(`Row index ${rowIndex} out of bounds [0, ${this.rowCount})`);
|
|
144
|
+
}
|
|
145
|
+
if (columnIndex < 0 || columnIndex >= this.columnCount) {
|
|
146
|
+
throw new Error(`Column index ${columnIndex} out of bounds [0, ${this.columnCount})`);
|
|
147
|
+
}
|
|
148
|
+
this.#cells.set(`${rowIndex},${columnIndex}`, {
|
|
149
|
+
contents,
|
|
150
|
+
options: cellOptions
|
|
151
|
+
});
|
|
152
|
+
return this;
|
|
153
|
+
}
|
|
154
|
+
getColumnOptions(columnIndex) {
|
|
155
|
+
return this.#columnOptions.get(columnIndex);
|
|
156
|
+
}
|
|
157
|
+
getRowOptions(rowIndex) {
|
|
158
|
+
return this.#rowOptions.get(rowIndex);
|
|
159
|
+
}
|
|
160
|
+
getCell(rowIndex, columnIndex) {
|
|
161
|
+
return this.#cells.get(`${rowIndex},${columnIndex}`);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
// src/api/service/core/DataDumpGeneratorService.ts
|
|
165
|
+
var DATA_DUMP_GENERATOR_SERVICE_ID = "@flowscripter/dynamic-cli-framework/data-dump-generator-service";
|
|
166
|
+
var DumpFormat;
|
|
167
|
+
((DumpFormat2) => {
|
|
168
|
+
DumpFormat2["HEX"] = "HEX";
|
|
169
|
+
DumpFormat2["ASCII"] = "ASCII";
|
|
170
|
+
})(DumpFormat ||= {});
|
|
171
|
+
// src/api/service/core/CompletionService.ts
|
|
172
|
+
var COMPLETION_SERVICE_ID = "@flowscripter/dynamic-cli-framework/completion-service";
|
|
173
|
+
var ShellType;
|
|
174
|
+
((ShellType2) => {
|
|
175
|
+
ShellType2["BASH"] = "bash";
|
|
176
|
+
ShellType2["ZSH"] = "zsh";
|
|
177
|
+
ShellType2["FISH"] = "fish";
|
|
178
|
+
ShellType2["POWERSHELL"] = "powershell";
|
|
179
|
+
})(ShellType ||= {});
|
|
180
|
+
// src/api/service/core/PrompterService.ts
|
|
181
|
+
var PROMPTER_SERVICE_ID = "@flowscripter/dynamic-cli-framework/prompter-service";
|
|
182
|
+
var PromptType;
|
|
183
|
+
((PromptType2) => {
|
|
184
|
+
PromptType2[PromptType2["SINGLE_SELECT"] = 0] = "SINGLE_SELECT";
|
|
185
|
+
PromptType2[PromptType2["MULTI_SELECT"] = 1] = "MULTI_SELECT";
|
|
186
|
+
PromptType2[PromptType2["ACKNOWLEDGE"] = 2] = "ACKNOWLEDGE";
|
|
187
|
+
PromptType2[PromptType2["TOGGLE"] = 3] = "TOGGLE";
|
|
188
|
+
PromptType2[PromptType2["TEXT"] = 4] = "TEXT";
|
|
189
|
+
PromptType2[PromptType2["OPEN_URL"] = 5] = "OPEN_URL";
|
|
190
|
+
})(PromptType ||= {});
|
|
191
|
+
// src/api/service/core/ArgumentPrompterService.ts
|
|
192
|
+
var ARGUMENT_PROMPTER_SERVICE_ID = "@flowscripter/dynamic-cli-framework/argument-prompter-service";
|
|
193
|
+
// src/api/service/core/PluginService.ts
|
|
194
|
+
var PLUGIN_SERVICE_ID = "PLUGIN_SERVICE";
|
|
65
195
|
export {
|
|
196
|
+
Table,
|
|
197
|
+
TREE_PRINTER_SERVICE_ID,
|
|
198
|
+
TABLE_GENERATOR_SERVICE_ID,
|
|
199
|
+
SpinnerStyle,
|
|
200
|
+
ShellType,
|
|
201
|
+
SYNTAX_HIGHLIGHTER_SERVICE_ID,
|
|
202
|
+
SHUTDOWN_SERVICE_ID,
|
|
203
|
+
SECRET_SENTINEL_PREFIX,
|
|
204
|
+
PromptType,
|
|
205
|
+
ProgressStyle,
|
|
206
|
+
PROMPTER_SERVICE_ID,
|
|
207
|
+
PRINTER_SERVICE_ID,
|
|
208
|
+
PRETTY_PRINTER_SERVICE_ID,
|
|
209
|
+
PLUGIN_SERVICE_ID,
|
|
210
|
+
Level,
|
|
211
|
+
KEY_VALUE_SERVICE_ID,
|
|
212
|
+
Icon,
|
|
213
|
+
IMAGE_PRINTER_SERVICE_ID,
|
|
214
|
+
DumpFormat,
|
|
66
215
|
DYNAMIC_CLI_FRAMEWORK_SERVICE_PROVIDER_FACTORY_EXTENSION_POINT,
|
|
67
216
|
DYNAMIC_CLI_FRAMEWORK_COMMAND_FACTORY_EXTENSION_POINT,
|
|
68
|
-
|
|
217
|
+
DATA_DUMP_GENERATOR_SERVICE_ID,
|
|
218
|
+
COMPLETION_SERVICE_ID,
|
|
219
|
+
ArgumentValueTypeName,
|
|
220
|
+
Align,
|
|
221
|
+
ASCII_BANNER_GENERATOR_SERVICE_ID,
|
|
222
|
+
ARGUMENT_PROMPTER_SERVICE_ID
|
|
69
223
|
};
|