mepcli 1.4.0 → 2.0.0-beta.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/README.md +43 -12
- package/dist/{ansi.js → src/ansi.js} +17 -9
- package/dist/src/ansi.js.map +1 -0
- package/dist/{base.js → src/base.js} +82 -70
- package/dist/src/base.js.map +1 -0
- package/dist/{core.js → src/core.js} +266 -322
- package/dist/src/core.js.map +1 -0
- package/dist/src/data/countries.js +569 -0
- package/dist/src/data/countries.js.map +1 -0
- package/dist/src/data/licenses.js +480 -0
- package/dist/src/data/licenses.js.map +1 -0
- package/dist/{highlight.js → src/highlight.js} +77 -69
- package/dist/src/highlight.js.map +1 -0
- package/dist/src/index.js +66 -0
- package/dist/src/index.js.map +1 -0
- package/dist/{input.js → src/input.js} +47 -41
- package/dist/src/input.js.map +1 -0
- package/dist/{pipeline.js → src/pipeline.js} +120 -93
- package/dist/src/pipeline.js.map +1 -0
- package/dist/{prompts → src/prompts}/autocomplete.js +58 -57
- package/dist/src/prompts/autocomplete.js.map +1 -0
- package/dist/{prompts → src/prompts}/box.js +86 -53
- package/dist/src/prompts/box.js.map +1 -0
- package/dist/{prompts → src/prompts}/breadcrumb-search.js +110 -98
- package/dist/src/prompts/breadcrumb-search.js.map +1 -0
- package/dist/{prompts → src/prompts}/breadcrumb.js +126 -121
- package/dist/src/prompts/breadcrumb.js.map +1 -0
- package/dist/{prompts → src/prompts}/byte.js +69 -52
- package/dist/src/prompts/byte.js.map +1 -0
- package/dist/{prompts → src/prompts}/calculator.js +79 -56
- package/dist/src/prompts/calculator.js.map +1 -0
- package/dist/{prompts → src/prompts}/calendar.js +167 -127
- package/dist/src/prompts/calendar.js.map +1 -0
- package/dist/{prompts → src/prompts}/checkbox.js +53 -49
- package/dist/src/prompts/checkbox.js.map +1 -0
- package/dist/{prompts → src/prompts}/code.js +88 -76
- package/dist/src/prompts/code.js.map +1 -0
- package/dist/{prompts → src/prompts}/color.js +68 -50
- package/dist/src/prompts/color.js.map +1 -0
- package/dist/{prompts → src/prompts}/confirm.js +22 -15
- package/dist/src/prompts/confirm.js.map +1 -0
- package/dist/{prompts → src/prompts}/connection-string.js +59 -36
- package/dist/src/prompts/connection-string.js.map +1 -0
- package/dist/{prompts → src/prompts}/cron.js +90 -59
- package/dist/src/prompts/cron.js.map +1 -0
- package/dist/src/prompts/curl-utils.js +71 -0
- package/dist/src/prompts/curl-utils.js.map +1 -0
- package/dist/{prompts → src/prompts}/curl.js +153 -132
- package/dist/src/prompts/curl.js.map +1 -0
- package/dist/{prompts → src/prompts}/data-inspector.js +96 -91
- package/dist/src/prompts/data-inspector.js.map +1 -0
- package/dist/{prompts → src/prompts}/date.js +64 -57
- package/dist/src/prompts/date.js.map +1 -0
- package/dist/{prompts → src/prompts}/dependency.js +84 -80
- package/dist/src/prompts/dependency.js.map +1 -0
- package/dist/{prompts → src/prompts}/dial.js +49 -35
- package/dist/src/prompts/dial.js.map +1 -0
- package/dist/src/prompts/diff.js +118 -0
- package/dist/src/prompts/diff.js.map +1 -0
- package/dist/{prompts → src/prompts}/draw.js +83 -80
- package/dist/src/prompts/draw.js.map +1 -0
- package/dist/src/prompts/editor.js +234 -0
- package/dist/src/prompts/editor.js.map +1 -0
- package/dist/{prompts → src/prompts}/emoji.js +80 -82
- package/dist/src/prompts/emoji.js.map +1 -0
- package/dist/{prompts → src/prompts}/exec.js +60 -46
- package/dist/src/prompts/exec.js.map +1 -0
- package/dist/src/prompts/file.js +217 -0
- package/dist/src/prompts/file.js.map +1 -0
- package/dist/{prompts → src/prompts}/form.js +63 -54
- package/dist/src/prompts/form.js.map +1 -0
- package/dist/{prompts → src/prompts}/fuzzy-multi-column.js +65 -53
- package/dist/src/prompts/fuzzy-multi-column.js.map +1 -0
- package/dist/{prompts → src/prompts}/fuzzy.js +66 -55
- package/dist/src/prompts/fuzzy.js.map +1 -0
- package/dist/src/prompts/gauge.js +137 -0
- package/dist/src/prompts/gauge.js.map +1 -0
- package/dist/{prompts → src/prompts}/grid.js +70 -57
- package/dist/src/prompts/grid.js.map +1 -0
- package/dist/{prompts → src/prompts}/heatmap.js +70 -64
- package/dist/src/prompts/heatmap.js.map +1 -0
- package/dist/{prompts → src/prompts}/ip.js +56 -36
- package/dist/src/prompts/ip.js.map +1 -0
- package/dist/{prompts → src/prompts}/kanban.js +63 -58
- package/dist/src/prompts/kanban.js.map +1 -0
- package/dist/src/prompts/keypress.js +54 -0
- package/dist/src/prompts/keypress.js.map +1 -0
- package/dist/src/prompts/license.js +144 -0
- package/dist/src/prompts/license.js.map +1 -0
- package/dist/{prompts → src/prompts}/list.js +46 -31
- package/dist/src/prompts/list.js.map +1 -0
- package/dist/{prompts → src/prompts}/map.js +93 -77
- package/dist/src/prompts/map.js.map +1 -0
- package/dist/{prompts → src/prompts}/match.js +91 -95
- package/dist/src/prompts/match.js.map +1 -0
- package/dist/{prompts → src/prompts}/miller.js +74 -67
- package/dist/src/prompts/miller.js.map +1 -0
- package/dist/{prompts → src/prompts}/multi-column-select.js +54 -44
- package/dist/src/prompts/multi-column-select.js.map +1 -0
- package/dist/{prompts → src/prompts}/multi-range.js +70 -52
- package/dist/src/prompts/multi-range.js.map +1 -0
- package/dist/{prompts → src/prompts}/multi-select.js +67 -58
- package/dist/src/prompts/multi-select.js.map +1 -0
- package/dist/{prompts → src/prompts}/number.js +51 -39
- package/dist/src/prompts/number.js.map +1 -0
- package/dist/{prompts → src/prompts}/otp.js +43 -27
- package/dist/src/prompts/otp.js.map +1 -0
- package/dist/{prompts → src/prompts}/pattern.js +74 -71
- package/dist/src/prompts/pattern.js.map +1 -0
- package/dist/{prompts → src/prompts}/phone.js +107 -118
- package/dist/src/prompts/phone.js.map +1 -0
- package/dist/src/prompts/quiz-select.js +114 -0
- package/dist/src/prompts/quiz-select.js.map +1 -0
- package/dist/src/prompts/quiz-text.js +98 -0
- package/dist/src/prompts/quiz-text.js.map +1 -0
- package/dist/{prompts → src/prompts}/range.js +85 -61
- package/dist/src/prompts/range.js.map +1 -0
- package/dist/{prompts → src/prompts}/rating.js +29 -24
- package/dist/src/prompts/rating.js.map +1 -0
- package/dist/{prompts → src/prompts}/regex.js +50 -36
- package/dist/src/prompts/regex.js.map +1 -0
- package/dist/{prompts → src/prompts}/region.js +62 -56
- package/dist/src/prompts/region.js.map +1 -0
- package/dist/{prompts → src/prompts}/schedule.js +82 -75
- package/dist/src/prompts/schedule.js.map +1 -0
- package/dist/{prompts → src/prompts}/scroll.js +61 -58
- package/dist/src/prompts/scroll.js.map +1 -0
- package/dist/src/prompts/seat.js +164 -0
- package/dist/src/prompts/seat.js.map +1 -0
- package/dist/{prompts → src/prompts}/select-range.js +58 -46
- package/dist/src/prompts/select-range.js.map +1 -0
- package/dist/{prompts → src/prompts}/select.js +65 -66
- package/dist/src/prompts/select.js.map +1 -0
- package/dist/{prompts → src/prompts}/semver.js +24 -13
- package/dist/src/prompts/semver.js.map +1 -0
- package/dist/src/prompts/shortcut.js +133 -0
- package/dist/src/prompts/shortcut.js.map +1 -0
- package/dist/{prompts → src/prompts}/slider.js +28 -23
- package/dist/src/prompts/slider.js.map +1 -0
- package/dist/src/prompts/slot.js +117 -0
- package/dist/src/prompts/slot.js.map +1 -0
- package/dist/{prompts → src/prompts}/snippet.js +82 -61
- package/dist/src/prompts/snippet.js.map +1 -0
- package/dist/{prompts → src/prompts}/sort-grid.js +64 -59
- package/dist/src/prompts/sort-grid.js.map +1 -0
- package/dist/{prompts → src/prompts}/sort.js +59 -49
- package/dist/src/prompts/sort.js.map +1 -0
- package/dist/src/prompts/spam.js +80 -0
- package/dist/src/prompts/spam.js.map +1 -0
- package/dist/{prompts → src/prompts}/spreadsheet.js +71 -70
- package/dist/src/prompts/spreadsheet.js.map +1 -0
- package/dist/{prompts → src/prompts}/table.js +52 -38
- package/dist/src/prompts/table.js.map +1 -0
- package/dist/{prompts → src/prompts}/text.js +74 -70
- package/dist/src/prompts/text.js.map +1 -0
- package/dist/{prompts → src/prompts}/time.js +105 -96
- package/dist/src/prompts/time.js.map +1 -0
- package/dist/src/prompts/toggle.js +53 -0
- package/dist/src/prompts/toggle.js.map +1 -0
- package/dist/{prompts → src/prompts}/transfer.js +71 -67
- package/dist/src/prompts/transfer.js.map +1 -0
- package/dist/{prompts → src/prompts}/tree-select.js +83 -86
- package/dist/src/prompts/tree-select.js.map +1 -0
- package/dist/{prompts → src/prompts}/tree.js +69 -67
- package/dist/src/prompts/tree.js.map +1 -0
- package/dist/src/prompts/wait.js +79 -0
- package/dist/src/prompts/wait.js.map +1 -0
- package/dist/src/spinner.js +105 -0
- package/dist/src/spinner.js.map +1 -0
- package/dist/{symbols.js → src/symbols.js} +32 -7
- package/dist/src/symbols.js.map +1 -0
- package/dist/{tasks.js → src/tasks.js} +104 -79
- package/dist/src/tasks.js.map +1 -0
- package/dist/src/theme.js +29 -0
- package/dist/src/theme.js.map +1 -0
- package/dist/src/types.js +8 -0
- package/dist/src/types.js.map +1 -0
- package/dist/{utils.js → src/utils.js} +196 -152
- package/dist/src/utils.js.map +1 -0
- package/package.json +15 -16
- package/dist/ansi.d.ts +0 -36
- package/dist/base.d.ts +0 -60
- package/dist/core.d.ts +0 -1072
- package/dist/data/countries.d.ts +0 -2
- package/dist/data/countries.js +0 -105
- package/dist/data/licenses.d.ts +0 -2
- package/dist/data/licenses.js +0 -109
- package/dist/highlight.d.ts +0 -7
- package/dist/index.d.ts +0 -48
- package/dist/index.js +0 -64
- package/dist/input.d.ts +0 -14
- package/dist/pipeline.d.ts +0 -90
- package/dist/prompts/autocomplete.d.ts +0 -22
- package/dist/prompts/box.d.ts +0 -21
- package/dist/prompts/breadcrumb-search.d.ts +0 -14
- package/dist/prompts/breadcrumb.d.ts +0 -32
- package/dist/prompts/byte.d.ts +0 -13
- package/dist/prompts/calculator.d.ts +0 -17
- package/dist/prompts/calendar.d.ts +0 -33
- package/dist/prompts/checkbox.d.ts +0 -13
- package/dist/prompts/code.d.ts +0 -19
- package/dist/prompts/color.d.ts +0 -14
- package/dist/prompts/confirm.d.ts +0 -8
- package/dist/prompts/connection-string.d.ts +0 -18
- package/dist/prompts/cron.d.ts +0 -13
- package/dist/prompts/curl-utils.d.ts +0 -25
- package/dist/prompts/curl-utils.js +0 -41
- package/dist/prompts/curl.d.ts +0 -41
- package/dist/prompts/data-inspector.d.ts +0 -22
- package/dist/prompts/date.d.ts +0 -12
- package/dist/prompts/dependency.d.ts +0 -16
- package/dist/prompts/dial.d.ts +0 -10
- package/dist/prompts/diff.d.ts +0 -10
- package/dist/prompts/diff.js +0 -101
- package/dist/prompts/draw.d.ts +0 -20
- package/dist/prompts/editor.d.ts +0 -14
- package/dist/prompts/editor.js +0 -203
- package/dist/prompts/emoji.d.ts +0 -18
- package/dist/prompts/exec.d.ts +0 -17
- package/dist/prompts/file.d.ts +0 -21
- package/dist/prompts/file.js +0 -210
- package/dist/prompts/form.d.ts +0 -18
- package/dist/prompts/fuzzy-multi-column.d.ts +0 -12
- package/dist/prompts/fuzzy.d.ts +0 -12
- package/dist/prompts/gauge.d.ts +0 -21
- package/dist/prompts/gauge.js +0 -130
- package/dist/prompts/grid.d.ts +0 -14
- package/dist/prompts/heatmap.d.ts +0 -13
- package/dist/prompts/ip.d.ts +0 -11
- package/dist/prompts/kanban.d.ts +0 -17
- package/dist/prompts/keypress.d.ts +0 -7
- package/dist/prompts/keypress.js +0 -55
- package/dist/prompts/license.d.ts +0 -9
- package/dist/prompts/license.js +0 -105
- package/dist/prompts/list.d.ts +0 -9
- package/dist/prompts/map.d.ts +0 -17
- package/dist/prompts/match.d.ts +0 -19
- package/dist/prompts/miller.d.ts +0 -15
- package/dist/prompts/multi-column-select.d.ts +0 -10
- package/dist/prompts/multi-range.d.ts +0 -9
- package/dist/prompts/multi-select.d.ts +0 -15
- package/dist/prompts/number.d.ts +0 -11
- package/dist/prompts/otp.d.ts +0 -10
- package/dist/prompts/pattern.d.ts +0 -22
- package/dist/prompts/phone.d.ts +0 -41
- package/dist/prompts/quiz-select.d.ts +0 -10
- package/dist/prompts/quiz-select.js +0 -104
- package/dist/prompts/quiz-text.d.ts +0 -11
- package/dist/prompts/quiz-text.js +0 -82
- package/dist/prompts/range.d.ts +0 -9
- package/dist/prompts/rating.d.ts +0 -8
- package/dist/prompts/regex.d.ts +0 -13
- package/dist/prompts/region.d.ts +0 -11
- package/dist/prompts/schedule.d.ts +0 -20
- package/dist/prompts/scroll.d.ts +0 -13
- package/dist/prompts/seat.d.ts +0 -17
- package/dist/prompts/seat.js +0 -165
- package/dist/prompts/select-range.d.ts +0 -8
- package/dist/prompts/select.d.ts +0 -15
- package/dist/prompts/semver.d.ts +0 -6
- package/dist/prompts/shortcut.d.ts +0 -9
- package/dist/prompts/shortcut.js +0 -135
- package/dist/prompts/slider.d.ts +0 -8
- package/dist/prompts/slot.d.ts +0 -16
- package/dist/prompts/slot.js +0 -107
- package/dist/prompts/snippet.d.ts +0 -19
- package/dist/prompts/sort-grid.d.ts +0 -16
- package/dist/prompts/sort.d.ts +0 -14
- package/dist/prompts/spam.d.ts +0 -17
- package/dist/prompts/spam.js +0 -62
- package/dist/prompts/spreadsheet.d.ts +0 -21
- package/dist/prompts/table.d.ts +0 -14
- package/dist/prompts/text.d.ts +0 -17
- package/dist/prompts/time.d.ts +0 -12
- package/dist/prompts/toggle.d.ts +0 -8
- package/dist/prompts/toggle.js +0 -47
- package/dist/prompts/transfer.d.ts +0 -18
- package/dist/prompts/tree-select.d.ts +0 -31
- package/dist/prompts/tree.d.ts +0 -20
- package/dist/prompts/wait.d.ts +0 -18
- package/dist/prompts/wait.js +0 -62
- package/dist/spinner.d.ts +0 -33
- package/dist/spinner.js +0 -89
- package/dist/symbols.d.ts +0 -33
- package/dist/tasks.d.ts +0 -57
- package/dist/theme.d.ts +0 -2
- package/dist/theme.js +0 -20
- package/dist/types.d.ts +0 -503
- package/dist/types.js +0 -5
- package/dist/utils.d.ts +0 -81
|
@@ -1,87 +1,104 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "MepCLI", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return MepCLI;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _theme = require("./theme");
|
|
12
|
+
const _spinner = require("./spinner");
|
|
13
|
+
const _text = require("./prompts/text");
|
|
14
|
+
const _select = require("./prompts/select");
|
|
15
|
+
const _checkbox = require("./prompts/checkbox");
|
|
16
|
+
const _confirm = require("./prompts/confirm");
|
|
17
|
+
const _toggle = require("./prompts/toggle");
|
|
18
|
+
const _number = require("./prompts/number");
|
|
19
|
+
const _list = require("./prompts/list");
|
|
20
|
+
const _slider = require("./prompts/slider");
|
|
21
|
+
const _range = require("./prompts/range");
|
|
22
|
+
const _transfer = require("./prompts/transfer");
|
|
23
|
+
const _cron = require("./prompts/cron");
|
|
24
|
+
const _date = require("./prompts/date");
|
|
25
|
+
const _file = require("./prompts/file");
|
|
26
|
+
const _multiselect = require("./prompts/multi-select");
|
|
27
|
+
const _rating = require("./prompts/rating");
|
|
28
|
+
const _autocomplete = require("./prompts/autocomplete");
|
|
29
|
+
const _sort = require("./prompts/sort");
|
|
30
|
+
const _table = require("./prompts/table");
|
|
31
|
+
const _editor = require("./prompts/editor");
|
|
32
|
+
const _tree = require("./prompts/tree");
|
|
33
|
+
const _keypress = require("./prompts/keypress");
|
|
34
|
+
const _form = require("./prompts/form");
|
|
35
|
+
const _snippet = require("./prompts/snippet");
|
|
36
|
+
const _spam = require("./prompts/spam");
|
|
37
|
+
const _wait = require("./prompts/wait");
|
|
38
|
+
const _code = require("./prompts/code");
|
|
39
|
+
const _treeselect = require("./prompts/tree-select");
|
|
40
|
+
const _color = require("./prompts/color");
|
|
41
|
+
const _grid = require("./prompts/grid");
|
|
42
|
+
const _calendar = require("./prompts/calendar");
|
|
43
|
+
const _map = require("./prompts/map");
|
|
44
|
+
const _semver = require("./prompts/semver");
|
|
45
|
+
const _ip = require("./prompts/ip");
|
|
46
|
+
const _otp = require("./prompts/otp");
|
|
47
|
+
const _quizselect = require("./prompts/quiz-select");
|
|
48
|
+
const _quiztext = require("./prompts/quiz-text");
|
|
49
|
+
const _kanban = require("./prompts/kanban");
|
|
50
|
+
const _time = require("./prompts/time");
|
|
51
|
+
const _heatmap = require("./prompts/heatmap");
|
|
52
|
+
const _byte = require("./prompts/byte");
|
|
53
|
+
const _slot = require("./prompts/slot");
|
|
54
|
+
const _gauge = require("./prompts/gauge");
|
|
55
|
+
const _calculator = require("./prompts/calculator");
|
|
56
|
+
const _emoji = require("./prompts/emoji");
|
|
57
|
+
const _match = require("./prompts/match");
|
|
58
|
+
const _diff = require("./prompts/diff");
|
|
59
|
+
const _dial = require("./prompts/dial");
|
|
60
|
+
const _draw = require("./prompts/draw");
|
|
61
|
+
const _multicolumnselect = require("./prompts/multi-column-select");
|
|
62
|
+
const _fuzzy = require("./prompts/fuzzy");
|
|
63
|
+
const _miller = require("./prompts/miller");
|
|
64
|
+
const _pattern = require("./prompts/pattern");
|
|
65
|
+
const _region = require("./prompts/region");
|
|
66
|
+
const _spreadsheet = require("./prompts/spreadsheet");
|
|
67
|
+
const _scroll = require("./prompts/scroll");
|
|
68
|
+
const _breadcrumb = require("./prompts/breadcrumb");
|
|
69
|
+
const _schedule = require("./prompts/schedule");
|
|
70
|
+
const _datainspector = require("./prompts/data-inspector");
|
|
71
|
+
const _exec = require("./prompts/exec");
|
|
72
|
+
const _shortcut = require("./prompts/shortcut");
|
|
73
|
+
const _seat = require("./prompts/seat");
|
|
74
|
+
const _selectrange = require("./prompts/select-range");
|
|
75
|
+
const _sortgrid = require("./prompts/sort-grid");
|
|
76
|
+
const _dependency = require("./prompts/dependency");
|
|
77
|
+
const _license = require("./prompts/license");
|
|
78
|
+
const _regex = require("./prompts/regex");
|
|
79
|
+
const _box = require("./prompts/box");
|
|
80
|
+
const _phone = require("./prompts/phone");
|
|
81
|
+
const _fuzzymulticolumn = require("./prompts/fuzzy-multi-column");
|
|
82
|
+
const _multirange = require("./prompts/multi-range");
|
|
83
|
+
const _breadcrumbsearch = require("./prompts/breadcrumb-search");
|
|
84
|
+
const _connectionstring = require("./prompts/connection-string");
|
|
85
|
+
const _curl = require("./prompts/curl");
|
|
86
|
+
const _pipeline = require("./pipeline");
|
|
87
|
+
const _tasks = require("./tasks");
|
|
88
|
+
function _define_property(obj, key, value) {
|
|
89
|
+
if (key in obj) {
|
|
90
|
+
Object.defineProperty(obj, key, {
|
|
91
|
+
value: value,
|
|
92
|
+
enumerable: true,
|
|
93
|
+
configurable: true,
|
|
94
|
+
writable: true
|
|
95
|
+
});
|
|
96
|
+
} else {
|
|
97
|
+
obj[key] = value;
|
|
98
|
+
}
|
|
99
|
+
return obj;
|
|
100
|
+
}
|
|
101
|
+
let MepCLI = class MepCLI {
|
|
85
102
|
/**
|
|
86
103
|
* Creates a new Spinner instance to indicate background activity.
|
|
87
104
|
* @example
|
|
@@ -92,9 +109,8 @@ class MepCLI {
|
|
|
92
109
|
* @param message - The initial text to display next to the spinner.
|
|
93
110
|
* @returns A Spinner instance to control the animation.
|
|
94
111
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/spinner.ts}
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
return new spinner_1.Spinner(message);
|
|
112
|
+
*/ static spinner(message) {
|
|
113
|
+
return new _spinner.Spinner(message);
|
|
98
114
|
}
|
|
99
115
|
/**
|
|
100
116
|
* Creates a new TaskRunner for managing multiple concurrent tasks (spinners/progress bars).
|
|
@@ -106,13 +122,11 @@ class MepCLI {
|
|
|
106
122
|
* @param options - Configuration for concurrency and renderer style.
|
|
107
123
|
* @returns A TaskRunner instance.
|
|
108
124
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/task-runner.ts}
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
return new tasks_1.TaskRunner(options);
|
|
125
|
+
*/ static tasks(options) {
|
|
126
|
+
return new _tasks.TaskRunner(options);
|
|
112
127
|
}
|
|
113
128
|
/**
|
|
114
129
|
* Creates a new Pipeline instance for sequential workflow execution.
|
|
115
|
-
* @experimental
|
|
116
130
|
* @example
|
|
117
131
|
* const context = await MepCLI.pipeline()
|
|
118
132
|
* .step('ask-name', async (ctx) => {
|
|
@@ -121,9 +135,8 @@ class MepCLI {
|
|
|
121
135
|
* .run();
|
|
122
136
|
* @returns A fluent Pipeline builder.
|
|
123
137
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/pipeline-demo.ts}
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
return new pipeline_1.Pipeline();
|
|
138
|
+
*/ static pipeline() {
|
|
139
|
+
return new _pipeline.Pipeline();
|
|
127
140
|
}
|
|
128
141
|
/**
|
|
129
142
|
* Standard text input prompt.
|
|
@@ -136,9 +149,8 @@ class MepCLI {
|
|
|
136
149
|
* @param options - Configuration options including validation and placeholder.
|
|
137
150
|
* @returns A promise resolving to the user's input string.
|
|
138
151
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
return new text_1.TextPrompt(options).run();
|
|
152
|
+
*/ static text(options) {
|
|
153
|
+
return new _text.TextPrompt(options).run();
|
|
142
154
|
}
|
|
143
155
|
/**
|
|
144
156
|
* Single selection prompt from a list of choices.
|
|
@@ -153,9 +165,8 @@ class MepCLI {
|
|
|
153
165
|
* @param options - Choices and configuration.
|
|
154
166
|
* @returns A promise resolving to the selected value (V).
|
|
155
167
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
return new select_1.SelectPrompt(options).run();
|
|
168
|
+
*/ static select(options) {
|
|
169
|
+
return new _select.SelectPrompt(options).run();
|
|
159
170
|
}
|
|
160
171
|
/**
|
|
161
172
|
* Multiple selection prompt with checkboxes.
|
|
@@ -171,9 +182,8 @@ class MepCLI {
|
|
|
171
182
|
* @param options - Choices, limits (min/max), and initial state.
|
|
172
183
|
* @returns A promise resolving to an array of selected values (V[]).
|
|
173
184
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
|
|
174
|
-
*/
|
|
175
|
-
|
|
176
|
-
return new checkbox_1.CheckboxPrompt(options).run();
|
|
185
|
+
*/ static checkbox(options) {
|
|
186
|
+
return new _checkbox.CheckboxPrompt(options).run();
|
|
177
187
|
}
|
|
178
188
|
/**
|
|
179
189
|
* Boolean confirmation prompt (Y/n).
|
|
@@ -185,9 +195,8 @@ class MepCLI {
|
|
|
185
195
|
* @param options - Message and initial boolean state.
|
|
186
196
|
* @returns A promise resolving to true or false.
|
|
187
197
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
return new confirm_1.ConfirmPrompt(options).run();
|
|
198
|
+
*/ static confirm(options) {
|
|
199
|
+
return new _confirm.ConfirmPrompt(options).run();
|
|
191
200
|
}
|
|
192
201
|
/**
|
|
193
202
|
* Secure password input (masked with *).
|
|
@@ -199,9 +208,11 @@ class MepCLI {
|
|
|
199
208
|
* @param options - Same as TextOptions but defaults to hidden input.
|
|
200
209
|
* @returns A promise resolving to the password string.
|
|
201
210
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
|
|
211
|
+
*/ static password(options) {
|
|
212
|
+
return new _text.TextPrompt({
|
|
213
|
+
...options,
|
|
214
|
+
isPassword: true
|
|
215
|
+
}).run();
|
|
205
216
|
}
|
|
206
217
|
/**
|
|
207
218
|
* Secret input prompt (no visual feedback).
|
|
@@ -212,9 +223,11 @@ class MepCLI {
|
|
|
212
223
|
* @param options - Same as TextOptions, visual output is suppressed.
|
|
213
224
|
* @returns A promise resolving to the secret string.
|
|
214
225
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
215
|
-
*/
|
|
216
|
-
|
|
217
|
-
|
|
226
|
+
*/ static secret(options) {
|
|
227
|
+
return new _text.TextPrompt({
|
|
228
|
+
...options,
|
|
229
|
+
mask: ''
|
|
230
|
+
}).run();
|
|
218
231
|
}
|
|
219
232
|
/**
|
|
220
233
|
* Numeric input prompt with increments.
|
|
@@ -228,9 +241,8 @@ class MepCLI {
|
|
|
228
241
|
* @param options - Min, max, step, and initial value.
|
|
229
242
|
* @returns A promise resolving to the entered number.
|
|
230
243
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
|
|
231
|
-
*/
|
|
232
|
-
|
|
233
|
-
return new number_1.NumberPrompt(options).run();
|
|
244
|
+
*/ static number(options) {
|
|
245
|
+
return new _number.NumberPrompt(options).run();
|
|
234
246
|
}
|
|
235
247
|
/**
|
|
236
248
|
* Binary toggle switch.
|
|
@@ -244,9 +256,8 @@ class MepCLI {
|
|
|
244
256
|
* @param options - Text labels for states and initial value.
|
|
245
257
|
* @returns A promise resolving to the boolean state.
|
|
246
258
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/basic-prompts.ts}
|
|
247
|
-
*/
|
|
248
|
-
|
|
249
|
-
return new toggle_1.TogglePrompt(options).run();
|
|
259
|
+
*/ static toggle(options) {
|
|
260
|
+
return new _toggle.TogglePrompt(options).run();
|
|
250
261
|
}
|
|
251
262
|
/**
|
|
252
263
|
* Tag list input (comma separated or enter to add).
|
|
@@ -259,9 +270,8 @@ class MepCLI {
|
|
|
259
270
|
* @param options - Placeholder and initial list.
|
|
260
271
|
* @returns A promise resolving to an array of strings.
|
|
261
272
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/form-prompts.ts}
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
return new list_1.ListPrompt(options).run();
|
|
273
|
+
*/ static list(options) {
|
|
274
|
+
return new _list.ListPrompt(options).run();
|
|
265
275
|
}
|
|
266
276
|
/**
|
|
267
277
|
* Slider input for selecting a number within a range.
|
|
@@ -276,9 +286,8 @@ class MepCLI {
|
|
|
276
286
|
* @param options - Min/max range, step, and unit label.
|
|
277
287
|
* @returns A promise resolving to the selected number.
|
|
278
288
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
return new slider_1.SliderPrompt(options).run();
|
|
289
|
+
*/ static slider(options) {
|
|
290
|
+
return new _slider.SliderPrompt(options).run();
|
|
282
291
|
}
|
|
283
292
|
/**
|
|
284
293
|
* Dual-handle slider for selecting a numeric range.
|
|
@@ -292,9 +301,8 @@ class MepCLI {
|
|
|
292
301
|
* @param options - Range bounds and initial start/end values.
|
|
293
302
|
* @returns A promise resolving to a tuple `[start, end]`.
|
|
294
303
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
295
|
-
*/
|
|
296
|
-
|
|
297
|
-
return new range_1.RangePrompt(options).run();
|
|
304
|
+
*/ static range(options) {
|
|
305
|
+
return new _range.RangePrompt(options).run();
|
|
298
306
|
}
|
|
299
307
|
/**
|
|
300
308
|
* Transfer list for moving items between two lists.
|
|
@@ -307,9 +315,8 @@ class MepCLI {
|
|
|
307
315
|
* @param options - Source and target lists.
|
|
308
316
|
* @returns A promise resolving to `[sourceItems, targetItems]`.
|
|
309
317
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
310
|
-
*/
|
|
311
|
-
|
|
312
|
-
return new transfer_1.TransferPrompt(options).run();
|
|
318
|
+
*/ static transfer(options) {
|
|
319
|
+
return new _transfer.TransferPrompt(options).run();
|
|
313
320
|
}
|
|
314
321
|
/**
|
|
315
322
|
* Cron expression generator/validator.
|
|
@@ -321,9 +328,8 @@ class MepCLI {
|
|
|
321
328
|
* @param options - Initial cron string and placeholder.
|
|
322
329
|
* @returns A promise resolving to the valid cron string.
|
|
323
330
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/cron-prompt.ts}
|
|
324
|
-
*/
|
|
325
|
-
|
|
326
|
-
return new cron_1.CronPrompt(options).run();
|
|
331
|
+
*/ static cron(options) {
|
|
332
|
+
return new _cron.CronPrompt(options).run();
|
|
327
333
|
}
|
|
328
334
|
/**
|
|
329
335
|
* Interactive date picker.
|
|
@@ -336,9 +342,8 @@ class MepCLI {
|
|
|
336
342
|
* @param options - Min/max dates and localization.
|
|
337
343
|
* @returns A promise resolving to the selected Date object.
|
|
338
344
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/calendar-prompt.ts}
|
|
339
|
-
*/
|
|
340
|
-
|
|
341
|
-
return new date_1.DatePrompt(options).run();
|
|
345
|
+
*/ static date(options) {
|
|
346
|
+
return new _date.DatePrompt(options).run();
|
|
342
347
|
}
|
|
343
348
|
/**
|
|
344
349
|
* File system explorer.
|
|
@@ -351,9 +356,8 @@ class MepCLI {
|
|
|
351
356
|
* @param options - Root path, allowed extensions, and directory filtering.
|
|
352
357
|
* @returns A promise resolving to the absolute path of the selected file.
|
|
353
358
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/filesystem-prompts.ts}
|
|
354
|
-
*/
|
|
355
|
-
|
|
356
|
-
return new file_1.FilePrompt(options).run();
|
|
359
|
+
*/ static file(options) {
|
|
360
|
+
return new _file.FilePrompt(options).run();
|
|
357
361
|
}
|
|
358
362
|
/**
|
|
359
363
|
* Multi-select checkbox with search support (alias for checkbox logic).
|
|
@@ -368,9 +372,8 @@ class MepCLI {
|
|
|
368
372
|
* @param options - Same as CheckboxOptions.
|
|
369
373
|
* @returns A promise resolving to an array of selected values.
|
|
370
374
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
|
|
371
|
-
*/
|
|
372
|
-
|
|
373
|
-
return new multi_select_1.MultiSelectPrompt(options).run();
|
|
375
|
+
*/ static multiSelect(options) {
|
|
376
|
+
return new _multiselect.MultiSelectPrompt(options).run();
|
|
374
377
|
}
|
|
375
378
|
/**
|
|
376
379
|
* Star rating input.
|
|
@@ -384,9 +387,8 @@ class MepCLI {
|
|
|
384
387
|
* @param options - Min/max stars.
|
|
385
388
|
* @returns A promise resolving to the numeric rating.
|
|
386
389
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
387
|
-
*/
|
|
388
|
-
|
|
389
|
-
return new rating_1.RatingPrompt(options).run();
|
|
390
|
+
*/ static rating(options) {
|
|
391
|
+
return new _rating.RatingPrompt(options).run();
|
|
390
392
|
}
|
|
391
393
|
/**
|
|
392
394
|
* Autocomplete search with async data fetching.
|
|
@@ -401,9 +403,8 @@ class MepCLI {
|
|
|
401
403
|
* @param options - `suggest` callback to filter/fetch choices.
|
|
402
404
|
* @returns A promise resolving to the selected value.
|
|
403
405
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
|
|
404
|
-
*/
|
|
405
|
-
|
|
406
|
-
return new autocomplete_1.AutocompletePrompt(options).run();
|
|
406
|
+
*/ static autocomplete(options) {
|
|
407
|
+
return new _autocomplete.AutocompletePrompt(options).run();
|
|
407
408
|
}
|
|
408
409
|
/**
|
|
409
410
|
* List sorting prompt.
|
|
@@ -415,9 +416,8 @@ class MepCLI {
|
|
|
415
416
|
* @param options - Array of strings to be reordered.
|
|
416
417
|
* @returns A promise resolving to the reordered array of strings.
|
|
417
418
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
418
|
-
*/
|
|
419
|
-
|
|
420
|
-
return new sort_1.SortPrompt(options).run();
|
|
419
|
+
*/ static sort(options) {
|
|
420
|
+
return new _sort.SortPrompt(options).run();
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
423
423
|
* Interactive data table with row selection.
|
|
@@ -433,9 +433,8 @@ class MepCLI {
|
|
|
433
433
|
* @param options - Columns definition and row data.
|
|
434
434
|
* @returns A promise resolving to the `value` of the selected row.
|
|
435
435
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/data-visualization.ts}
|
|
436
|
-
*/
|
|
437
|
-
|
|
438
|
-
return new table_1.TablePrompt(options).run();
|
|
436
|
+
*/ static table(options) {
|
|
437
|
+
return new _table.TablePrompt(options).run();
|
|
439
438
|
}
|
|
440
439
|
/**
|
|
441
440
|
* Open external editor (vim/nano/code) for long input.
|
|
@@ -447,9 +446,8 @@ class MepCLI {
|
|
|
447
446
|
* @param options - File extension for syntax highlighting.
|
|
448
447
|
* @returns A promise resolving to the saved content.
|
|
449
448
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/form-prompts.ts}
|
|
450
|
-
*/
|
|
451
|
-
|
|
452
|
-
return new editor_1.EditorPrompt(options).run();
|
|
449
|
+
*/ static editor(options) {
|
|
450
|
+
return new _editor.EditorPrompt(options).run();
|
|
453
451
|
}
|
|
454
452
|
/**
|
|
455
453
|
* Hierarchical tree selection.
|
|
@@ -465,9 +463,8 @@ class MepCLI {
|
|
|
465
463
|
* @param options - Tree structure data.
|
|
466
464
|
* @returns A promise resolving to the selected node's value.
|
|
467
465
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/tree-prompt.ts}
|
|
468
|
-
*/
|
|
469
|
-
|
|
470
|
-
return new tree_1.TreePrompt(options).run();
|
|
466
|
+
*/ static tree(options) {
|
|
467
|
+
return new _tree.TreePrompt(options).run();
|
|
471
468
|
}
|
|
472
469
|
/**
|
|
473
470
|
* Detect single keypress event.
|
|
@@ -478,9 +475,8 @@ class MepCLI {
|
|
|
478
475
|
* @param options - Optional allowed keys filter.
|
|
479
476
|
* @returns A promise resolving to the pressed key name.
|
|
480
477
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
481
|
-
*/
|
|
482
|
-
|
|
483
|
-
return new keypress_1.KeypressPrompt(options).run();
|
|
478
|
+
*/ static keypress(options) {
|
|
479
|
+
return new _keypress.KeypressPrompt(options).run();
|
|
484
480
|
}
|
|
485
481
|
/**
|
|
486
482
|
* Multi-field form input.
|
|
@@ -496,9 +492,8 @@ class MepCLI {
|
|
|
496
492
|
* @param options - Array of field definitions.
|
|
497
493
|
* @returns A promise resolving to an object with field names as keys.
|
|
498
494
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/form-prompts.ts}
|
|
499
|
-
*/
|
|
500
|
-
|
|
501
|
-
return new form_1.FormPrompt(options).run();
|
|
495
|
+
*/ static form(options) {
|
|
496
|
+
return new _form.FormPrompt(options).run();
|
|
502
497
|
}
|
|
503
498
|
/**
|
|
504
499
|
* Templated snippet generator.
|
|
@@ -516,9 +511,8 @@ class MepCLI {
|
|
|
516
511
|
* @param options - Template string with {{variables}} and field config.
|
|
517
512
|
* @returns A promise resolving to the compiled string.
|
|
518
513
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/snippet-prompt.ts}
|
|
519
|
-
*/
|
|
520
|
-
|
|
521
|
-
return new snippet_1.SnippetPrompt(options).run();
|
|
514
|
+
*/ static snippet(options) {
|
|
515
|
+
return new _snippet.SnippetPrompt(options).run();
|
|
522
516
|
}
|
|
523
517
|
/**
|
|
524
518
|
* Anti-spam / Bot detection prompt.
|
|
@@ -531,9 +525,8 @@ class MepCLI {
|
|
|
531
525
|
* @param options - Threshold frequency and key to mash.
|
|
532
526
|
* @returns A promise resolving to true (pass) or false (fail).
|
|
533
527
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/spam-prompt.ts}
|
|
534
|
-
*/
|
|
535
|
-
|
|
536
|
-
return new spam_1.SpamPrompt(options).run();
|
|
528
|
+
*/ static spam(options) {
|
|
529
|
+
return new _spam.SpamPrompt(options).run();
|
|
537
530
|
}
|
|
538
531
|
/**
|
|
539
532
|
* Pause execution for a set time (with progress).
|
|
@@ -545,9 +538,8 @@ class MepCLI {
|
|
|
545
538
|
* @param options - Duration in seconds.
|
|
546
539
|
* @returns A promise resolving after the delay.
|
|
547
540
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/wait-prompt.ts}
|
|
548
|
-
*/
|
|
549
|
-
|
|
550
|
-
return new wait_1.WaitPrompt(options).run();
|
|
541
|
+
*/ static wait(options) {
|
|
542
|
+
return new _wait.WaitPrompt(options).run();
|
|
551
543
|
}
|
|
552
544
|
/**
|
|
553
545
|
* Source code editor with syntax highlighting.
|
|
@@ -560,9 +552,8 @@ class MepCLI {
|
|
|
560
552
|
* @param options - Language, initial template, and syntax highlighting.
|
|
561
553
|
* @returns A promise resolving to the edited code string.
|
|
562
554
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/code-prompt.ts}
|
|
563
|
-
*/
|
|
564
|
-
|
|
565
|
-
return new code_1.CodePrompt(options).run();
|
|
555
|
+
*/ static code(options) {
|
|
556
|
+
return new _code.CodePrompt(options).run();
|
|
566
557
|
}
|
|
567
558
|
/**
|
|
568
559
|
* Tree Select Prompt (Multi-selection).
|
|
@@ -583,9 +574,8 @@ class MepCLI {
|
|
|
583
574
|
* When used in a long sequence of prompts, this component may experience
|
|
584
575
|
* an input delay. If it feels "blocked", simply press 'Enter' once
|
|
585
576
|
* to refresh the TTY stream.
|
|
586
|
-
*/
|
|
587
|
-
|
|
588
|
-
return new tree_select_1.TreeSelectPrompt(options).run();
|
|
577
|
+
*/ static treeSelect(options) {
|
|
578
|
+
return new _treeselect.TreeSelectPrompt(options).run();
|
|
589
579
|
}
|
|
590
580
|
/**
|
|
591
581
|
* Color picker (Hex, RGB, HSL).
|
|
@@ -598,9 +588,8 @@ class MepCLI {
|
|
|
598
588
|
* @param options - Format preference and initial value.
|
|
599
589
|
* @returns A promise resolving to the color string.
|
|
600
590
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/color-prompt.ts}
|
|
601
|
-
*/
|
|
602
|
-
|
|
603
|
-
return new color_1.ColorPrompt(options).run();
|
|
591
|
+
*/ static color(options) {
|
|
592
|
+
return new _color.ColorPrompt(options).run();
|
|
604
593
|
}
|
|
605
594
|
/**
|
|
606
595
|
* 2D Grid Checkbox (Boolean Matrix).
|
|
@@ -613,9 +602,8 @@ class MepCLI {
|
|
|
613
602
|
* @param options - Row/Column labels.
|
|
614
603
|
* @returns A promise resolving to a 2D boolean array.
|
|
615
604
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/grid-prompt.ts}
|
|
616
|
-
*/
|
|
617
|
-
|
|
618
|
-
return new grid_1.GridPrompt(options).run();
|
|
605
|
+
*/ static grid(options) {
|
|
606
|
+
return new _grid.GridPrompt(options).run();
|
|
619
607
|
}
|
|
620
608
|
/**
|
|
621
609
|
* Calendar picker for dates or ranges.
|
|
@@ -627,9 +615,8 @@ class MepCLI {
|
|
|
627
615
|
* @param options - Selection mode (single/range) and bounds.
|
|
628
616
|
* @returns A promise resolving to a Date or [Date, Date].
|
|
629
617
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/calendar-prompt.ts}
|
|
630
|
-
*/
|
|
631
|
-
|
|
632
|
-
return new calendar_1.CalendarPrompt(options).run();
|
|
618
|
+
*/ static calendar(options) {
|
|
619
|
+
return new _calendar.CalendarPrompt(options).run();
|
|
633
620
|
}
|
|
634
621
|
/**
|
|
635
622
|
* Key-Value Map editor.
|
|
@@ -641,9 +628,8 @@ class MepCLI {
|
|
|
641
628
|
* @param options - Initial key-value pairs.
|
|
642
629
|
* @returns A promise resolving to a record of strings.
|
|
643
630
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/map-prompt.ts}
|
|
644
|
-
*/
|
|
645
|
-
|
|
646
|
-
return new map_1.MapPrompt(options).run();
|
|
631
|
+
*/ static map(options) {
|
|
632
|
+
return new _map.MapPrompt(options).run();
|
|
647
633
|
}
|
|
648
634
|
/**
|
|
649
635
|
* Semantic Versioning incrementer.
|
|
@@ -655,9 +641,8 @@ class MepCLI {
|
|
|
655
641
|
* @param options - The current version string.
|
|
656
642
|
* @returns A promise resolving to the new version string.
|
|
657
643
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/semver-prompt.ts}
|
|
658
|
-
*/
|
|
659
|
-
|
|
660
|
-
return new semver_1.SemVerPrompt(options).run();
|
|
644
|
+
*/ static semver(options) {
|
|
645
|
+
return new _semver.SemVerPrompt(options).run();
|
|
661
646
|
}
|
|
662
647
|
/**
|
|
663
648
|
* IP Address input validator.
|
|
@@ -669,9 +654,8 @@ class MepCLI {
|
|
|
669
654
|
* @param options - Initial value.
|
|
670
655
|
* @returns A promise resolving to the valid IP string.
|
|
671
656
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/ip-prompt.ts}
|
|
672
|
-
*/
|
|
673
|
-
|
|
674
|
-
return new ip_1.IPPrompt(options).run();
|
|
657
|
+
*/ static ip(options) {
|
|
658
|
+
return new _ip.IPPrompt(options).run();
|
|
675
659
|
}
|
|
676
660
|
/**
|
|
677
661
|
* One-Time Password / Pin Code input.
|
|
@@ -683,9 +667,8 @@ class MepCLI {
|
|
|
683
667
|
* @param options - Length and masking options.
|
|
684
668
|
* @returns A promise resolving to the entered code.
|
|
685
669
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/otp-prompt.ts}
|
|
686
|
-
*/
|
|
687
|
-
|
|
688
|
-
return new otp_1.OTPPrompt(options).run();
|
|
670
|
+
*/ static otp(options) {
|
|
671
|
+
return new _otp.OTPPrompt(options).run();
|
|
689
672
|
}
|
|
690
673
|
/**
|
|
691
674
|
* Multiple choice quiz.
|
|
@@ -701,9 +684,8 @@ class MepCLI {
|
|
|
701
684
|
* @param options - Choices and correct answer logic.
|
|
702
685
|
* @returns A promise resolving to the selected value.
|
|
703
686
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/quiz-select-prompt.ts}
|
|
704
|
-
*/
|
|
705
|
-
|
|
706
|
-
return new quiz_select_1.QuizSelectPrompt(options).run();
|
|
687
|
+
*/ static quizSelect(options) {
|
|
688
|
+
return new _quizselect.QuizSelectPrompt(options).run();
|
|
707
689
|
}
|
|
708
690
|
/**
|
|
709
691
|
* Text-based quiz with verification.
|
|
@@ -716,9 +698,8 @@ class MepCLI {
|
|
|
716
698
|
* @param options - Correct answer string or validation function.
|
|
717
699
|
* @returns A promise resolving to the input string.
|
|
718
700
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/quiz-text-prompt.ts}
|
|
719
|
-
*/
|
|
720
|
-
|
|
721
|
-
return new quiz_text_1.QuizTextPrompt(options).run();
|
|
701
|
+
*/ static quizText(options) {
|
|
702
|
+
return new _quiztext.QuizTextPrompt(options).run();
|
|
722
703
|
}
|
|
723
704
|
/**
|
|
724
705
|
* Kanban board for organizing items.
|
|
@@ -733,9 +714,8 @@ class MepCLI {
|
|
|
733
714
|
* @param options - Columns and their items.
|
|
734
715
|
* @returns A promise resolving to the final column state.
|
|
735
716
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/kanban-prompt.ts}
|
|
736
|
-
*/
|
|
737
|
-
|
|
738
|
-
return new kanban_1.KanbanPrompt(options).run();
|
|
717
|
+
*/ static kanban(options) {
|
|
718
|
+
return new _kanban.KanbanPrompt(options).run();
|
|
739
719
|
}
|
|
740
720
|
/**
|
|
741
721
|
* Time picker (HH:MM AM/PM).
|
|
@@ -747,9 +727,8 @@ class MepCLI {
|
|
|
747
727
|
* @param options - 12h/24h format and step intervals.
|
|
748
728
|
* @returns A promise resolving to the time string.
|
|
749
729
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/time-prompt.ts}
|
|
750
|
-
*/
|
|
751
|
-
|
|
752
|
-
return new time_1.TimePrompt(options).run();
|
|
730
|
+
*/ static time(options) {
|
|
731
|
+
return new _time.TimePrompt(options).run();
|
|
753
732
|
}
|
|
754
733
|
/**
|
|
755
734
|
* Heatmap/Weekly schedule selector.
|
|
@@ -766,9 +745,8 @@ class MepCLI {
|
|
|
766
745
|
* @param options - Grid labels and color scale legend.
|
|
767
746
|
* @returns A promise resolving to a 2D array of values.
|
|
768
747
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/heatmap-prompt.ts}
|
|
769
|
-
*/
|
|
770
|
-
|
|
771
|
-
return new heatmap_1.HeatmapPrompt(options).run();
|
|
748
|
+
*/ static heatmap(options) {
|
|
749
|
+
return new _heatmap.HeatmapPrompt(options).run();
|
|
772
750
|
}
|
|
773
751
|
/**
|
|
774
752
|
* Byte size input (KB, MB, GB).
|
|
@@ -780,9 +758,8 @@ class MepCLI {
|
|
|
780
758
|
* @param options - Min/Max bytes.
|
|
781
759
|
* @returns A promise resolving to the number of bytes.
|
|
782
760
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/byte-prompt.ts}
|
|
783
|
-
*/
|
|
784
|
-
|
|
785
|
-
return new byte_1.BytePrompt(options).run();
|
|
761
|
+
*/ static byte(options) {
|
|
762
|
+
return new _byte.BytePrompt(options).run();
|
|
786
763
|
}
|
|
787
764
|
/**
|
|
788
765
|
* Slot machine style spinner.
|
|
@@ -795,9 +772,8 @@ class MepCLI {
|
|
|
795
772
|
* @param options - Items to cycle through.
|
|
796
773
|
* @returns A promise resolving to the selected item string.
|
|
797
774
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/slot-prompt.ts}
|
|
798
|
-
*/
|
|
799
|
-
|
|
800
|
-
return new slot_1.SlotPrompt(options).run();
|
|
775
|
+
*/ static slot(options) {
|
|
776
|
+
return new _slot.SlotPrompt(options).run();
|
|
801
777
|
}
|
|
802
778
|
/**
|
|
803
779
|
* Rhythm game style gauge input.
|
|
@@ -809,9 +785,8 @@ class MepCLI {
|
|
|
809
785
|
* @param options - Width and difficulty (safeZone).
|
|
810
786
|
* @returns A promise resolving to 'success' or 'fail'.
|
|
811
787
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/gauge-prompt.ts}
|
|
812
|
-
*/
|
|
813
|
-
|
|
814
|
-
return new gauge_1.GaugePrompt(options).run();
|
|
788
|
+
*/ static gauge(options) {
|
|
789
|
+
return new _gauge.GaugePrompt(options).run();
|
|
815
790
|
}
|
|
816
791
|
/**
|
|
817
792
|
* Interactive calculator.
|
|
@@ -823,9 +798,8 @@ class MepCLI {
|
|
|
823
798
|
* @param options - Initial expression.
|
|
824
799
|
* @returns A promise resolving to the numeric result.
|
|
825
800
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
826
|
-
*/
|
|
827
|
-
|
|
828
|
-
return new calculator_1.CalculatorPrompt(options).run();
|
|
801
|
+
*/ static calculator(options) {
|
|
802
|
+
return new _calculator.CalculatorPrompt(options).run();
|
|
829
803
|
}
|
|
830
804
|
/**
|
|
831
805
|
* Emoji picker.
|
|
@@ -840,9 +814,8 @@ class MepCLI {
|
|
|
840
814
|
* @param options - List of emojis and recent history.
|
|
841
815
|
* @returns A promise resolving to the selected emoji name/char.
|
|
842
816
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
843
|
-
*/
|
|
844
|
-
|
|
845
|
-
return new emoji_1.EmojiPrompt(options).run();
|
|
817
|
+
*/ static emoji(options) {
|
|
818
|
+
return new _emoji.EmojiPrompt(options).run();
|
|
846
819
|
}
|
|
847
820
|
/**
|
|
848
821
|
* Match/Connect items from two lists.
|
|
@@ -855,9 +828,8 @@ class MepCLI {
|
|
|
855
828
|
* @param options - Source and Target lists.
|
|
856
829
|
* @returns A promise resolving to linked pairs.
|
|
857
830
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
858
|
-
*/
|
|
859
|
-
|
|
860
|
-
return new match_1.MatchPrompt(options).run();
|
|
831
|
+
*/ static match(options) {
|
|
832
|
+
return new _match.MatchPrompt(options).run();
|
|
861
833
|
}
|
|
862
834
|
/**
|
|
863
835
|
* Git-style diff viewer.
|
|
@@ -870,9 +842,8 @@ class MepCLI {
|
|
|
870
842
|
* @param options - Original and Modified strings.
|
|
871
843
|
* @returns A promise resolving to a confirmation string.
|
|
872
844
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
873
|
-
*/
|
|
874
|
-
|
|
875
|
-
return new diff_1.DiffPrompt(options).run();
|
|
845
|
+
*/ static diff(options) {
|
|
846
|
+
return new _diff.DiffPrompt(options).run();
|
|
876
847
|
}
|
|
877
848
|
/**
|
|
878
849
|
* Rotary dial input.
|
|
@@ -885,9 +856,8 @@ class MepCLI {
|
|
|
885
856
|
* @param options - Range and radius.
|
|
886
857
|
* @returns A promise resolving to the number.
|
|
887
858
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
888
|
-
*/
|
|
889
|
-
|
|
890
|
-
return new dial_1.DialPrompt(options).run();
|
|
859
|
+
*/ static dial(options) {
|
|
860
|
+
return new _dial.DialPrompt(options).run();
|
|
891
861
|
}
|
|
892
862
|
/**
|
|
893
863
|
* Canvas drawing input.
|
|
@@ -900,9 +870,8 @@ class MepCLI {
|
|
|
900
870
|
* @param options - Canvas dimensions and export type.
|
|
901
871
|
* @returns A promise resolving to the raw matrix or text.
|
|
902
872
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
903
|
-
*/
|
|
904
|
-
|
|
905
|
-
return new draw_1.DrawPrompt(options).run();
|
|
873
|
+
*/ static draw(options) {
|
|
874
|
+
return new _draw.DrawPrompt(options).run();
|
|
906
875
|
}
|
|
907
876
|
/**
|
|
908
877
|
* Multi-column selection (Grid layout).
|
|
@@ -919,9 +888,8 @@ class MepCLI {
|
|
|
919
888
|
* @param options - Choices and column count.
|
|
920
889
|
* @returns A promise resolving to the selected value.
|
|
921
890
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
922
|
-
*/
|
|
923
|
-
|
|
924
|
-
return new multi_column_select_1.MultiColumnSelectPrompt(options).run();
|
|
891
|
+
*/ static multiColumnSelect(options) {
|
|
892
|
+
return new _multicolumnselect.MultiColumnSelectPrompt(options).run();
|
|
925
893
|
}
|
|
926
894
|
/**
|
|
927
895
|
* Fuzzy search selection.
|
|
@@ -936,9 +904,8 @@ class MepCLI {
|
|
|
936
904
|
* @param options - Choices to fuzzy search against.
|
|
937
905
|
* @returns A promise resolving to the selected value.
|
|
938
906
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/selection-prompts.ts}
|
|
939
|
-
*/
|
|
940
|
-
|
|
941
|
-
return new fuzzy_1.FuzzySelectPrompt(options).run();
|
|
907
|
+
*/ static fuzzySelect(options) {
|
|
908
|
+
return new _fuzzy.FuzzySelectPrompt(options).run();
|
|
942
909
|
}
|
|
943
910
|
/**
|
|
944
911
|
* Miller Columns (Cascading lists).
|
|
@@ -952,9 +919,8 @@ class MepCLI {
|
|
|
952
919
|
* @param options - Hierarchical data and separator.
|
|
953
920
|
* @returns A promise resolving to the selected path array.
|
|
954
921
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
955
|
-
*/
|
|
956
|
-
|
|
957
|
-
return new miller_1.MillerPrompt(options).run();
|
|
922
|
+
*/ static miller(options) {
|
|
923
|
+
return new _miller.MillerPrompt(options).run();
|
|
958
924
|
}
|
|
959
925
|
/**
|
|
960
926
|
* Pattern Lock (Android style).
|
|
@@ -967,9 +933,8 @@ class MepCLI {
|
|
|
967
933
|
* @param options - Grid dimensions.
|
|
968
934
|
* @returns A promise resolving to an array of point indices.
|
|
969
935
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
970
|
-
*/
|
|
971
|
-
|
|
972
|
-
return new pattern_1.PatternPrompt(options).run();
|
|
936
|
+
*/ static pattern(options) {
|
|
937
|
+
return new _pattern.PatternPrompt(options).run();
|
|
973
938
|
}
|
|
974
939
|
/**
|
|
975
940
|
* Region/Map Selector (ASCII Art).
|
|
@@ -984,9 +949,8 @@ class MepCLI {
|
|
|
984
949
|
* @param options - ASCII map string and interactive points.
|
|
985
950
|
* @returns A promise resolving to the selected region ID.
|
|
986
951
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/map-prompt.ts}
|
|
987
|
-
*/
|
|
988
|
-
|
|
989
|
-
return new region_1.RegionPrompt(options).run();
|
|
952
|
+
*/ static region(options) {
|
|
953
|
+
return new _region.RegionPrompt(options).run();
|
|
990
954
|
}
|
|
991
955
|
/**
|
|
992
956
|
* Spreadsheet/Grid Editor.
|
|
@@ -999,9 +963,8 @@ class MepCLI {
|
|
|
999
963
|
* @param options - Column definitions and initial data rows.
|
|
1000
964
|
* @returns A promise resolving to the modified data array.
|
|
1001
965
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
1002
|
-
*/
|
|
1003
|
-
|
|
1004
|
-
return new spreadsheet_1.SpreadsheetPrompt(options).run();
|
|
966
|
+
*/ static spreadsheet(options) {
|
|
967
|
+
return new _spreadsheet.SpreadsheetPrompt(options).run();
|
|
1005
968
|
}
|
|
1006
969
|
/**
|
|
1007
970
|
* Text Scroller (EULA/Terms).
|
|
@@ -1014,9 +977,8 @@ class MepCLI {
|
|
|
1014
977
|
* @param options - Text content and scroll enforcement.
|
|
1015
978
|
* @returns A promise resolving to a boolean (accepted).
|
|
1016
979
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
1017
|
-
*/
|
|
1018
|
-
|
|
1019
|
-
return new scroll_1.ScrollPrompt(options).run();
|
|
980
|
+
*/ static scroll(options) {
|
|
981
|
+
return new _scroll.ScrollPrompt(options).run();
|
|
1020
982
|
}
|
|
1021
983
|
/**
|
|
1022
984
|
* Breadcrumb navigation.
|
|
@@ -1028,9 +990,8 @@ class MepCLI {
|
|
|
1028
990
|
* @param options - Initial path and separator.
|
|
1029
991
|
* @returns A promise resolving to the final path string.
|
|
1030
992
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/breadcrumb-search-prompt.ts}
|
|
1031
|
-
*/
|
|
1032
|
-
|
|
1033
|
-
return new breadcrumb_1.BreadcrumbPrompt(options).run();
|
|
993
|
+
*/ static breadcrumb(options) {
|
|
994
|
+
return new _breadcrumb.BreadcrumbPrompt(options).run();
|
|
1034
995
|
}
|
|
1035
996
|
/**
|
|
1036
997
|
* Schedule Planner (Gantt-like).
|
|
@@ -1044,9 +1005,8 @@ class MepCLI {
|
|
|
1044
1005
|
* @param options - List of scheduled tasks.
|
|
1045
1006
|
* @returns A promise resolving to the modified task list.
|
|
1046
1007
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/schedule-prompt.ts}
|
|
1047
|
-
*/
|
|
1048
|
-
|
|
1049
|
-
return new schedule_1.SchedulePrompt(options).run();
|
|
1008
|
+
*/ static schedule(options) {
|
|
1009
|
+
return new _schedule.SchedulePrompt(options).run();
|
|
1050
1010
|
}
|
|
1051
1011
|
/**
|
|
1052
1012
|
* JSON Data Inspector.
|
|
@@ -1058,13 +1018,11 @@ class MepCLI {
|
|
|
1058
1018
|
* @param options - Data object to explore.
|
|
1059
1019
|
* @returns A promise resolving to the viewed data.
|
|
1060
1020
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
1061
|
-
*/
|
|
1062
|
-
|
|
1063
|
-
return new data_inspector_1.DataInspectorPrompt(options).run();
|
|
1021
|
+
*/ static inspector(options) {
|
|
1022
|
+
return new _datainspector.DataInspectorPrompt(options).run();
|
|
1064
1023
|
}
|
|
1065
1024
|
/**
|
|
1066
1025
|
* Execute shell command with output streaming.
|
|
1067
|
-
* @experimental
|
|
1068
1026
|
* @example
|
|
1069
1027
|
* await MepCLI.exec({
|
|
1070
1028
|
* message: 'Running build...',
|
|
@@ -1073,9 +1031,8 @@ class MepCLI {
|
|
|
1073
1031
|
* @param options - Command string and streaming preferences.
|
|
1074
1032
|
* @returns A promise resolving when execution completes.
|
|
1075
1033
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/exec-prompt.ts}
|
|
1076
|
-
*/
|
|
1077
|
-
|
|
1078
|
-
return new exec_1.ExecPrompt(options).run();
|
|
1034
|
+
*/ static exec(options) {
|
|
1035
|
+
return new _exec.ExecPrompt(options).run();
|
|
1079
1036
|
}
|
|
1080
1037
|
/**
|
|
1081
1038
|
* Keyboard Shortcut recorder.
|
|
@@ -1087,9 +1044,8 @@ class MepCLI {
|
|
|
1087
1044
|
* @param options - Initial value.
|
|
1088
1045
|
* @returns A promise resolving to the captured key event.
|
|
1089
1046
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
1090
|
-
*/
|
|
1091
|
-
|
|
1092
|
-
return new shortcut_1.ShortcutPrompt(options).run();
|
|
1047
|
+
*/ static shortcut(options) {
|
|
1048
|
+
return new _shortcut.ShortcutPrompt(options).run();
|
|
1093
1049
|
}
|
|
1094
1050
|
/**
|
|
1095
1051
|
* Seat Booking/Reservation selector.
|
|
@@ -1106,9 +1062,8 @@ class MepCLI {
|
|
|
1106
1062
|
* @param options - Layout string array and labelling.
|
|
1107
1063
|
* @returns A promise resolving to selected seat IDs.
|
|
1108
1064
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
1109
|
-
*/
|
|
1110
|
-
|
|
1111
|
-
return new seat_1.SeatPrompt(options).run();
|
|
1065
|
+
*/ static seat(options) {
|
|
1066
|
+
return new _seat.SeatPrompt(options).run();
|
|
1112
1067
|
}
|
|
1113
1068
|
/**
|
|
1114
1069
|
* Range selection within a list (Shift+Click style).
|
|
@@ -1124,9 +1079,8 @@ class MepCLI {
|
|
|
1124
1079
|
* @param options - Choices list.
|
|
1125
1080
|
* @returns A promise resolving to the sub-array of values.
|
|
1126
1081
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
1127
|
-
*/
|
|
1128
|
-
|
|
1129
|
-
return new select_range_1.SelectRangePrompt(options).run();
|
|
1082
|
+
*/ static selectRange(options) {
|
|
1083
|
+
return new _selectrange.SelectRangePrompt(options).run();
|
|
1130
1084
|
}
|
|
1131
1085
|
/**
|
|
1132
1086
|
* 2D Grid Sorting.
|
|
@@ -1141,9 +1095,8 @@ class MepCLI {
|
|
|
1141
1095
|
* @param options - 2D array of strings.
|
|
1142
1096
|
* @returns A promise resolving to the reordered 2D array.
|
|
1143
1097
|
* @see {@link https://github.com/CodeTease/mep/blob/main/example.ts}
|
|
1144
|
-
*/
|
|
1145
|
-
|
|
1146
|
-
return new sort_grid_1.SortGridPrompt(options).run();
|
|
1098
|
+
*/ static sortGrid(options) {
|
|
1099
|
+
return new _sortgrid.SortGridPrompt(options).run();
|
|
1147
1100
|
}
|
|
1148
1101
|
/**
|
|
1149
1102
|
* Dependency Management (Resolves conflicts/requirements).
|
|
@@ -1158,9 +1111,8 @@ class MepCLI {
|
|
|
1158
1111
|
* @param options - Choices with dependency rules.
|
|
1159
1112
|
* @returns A promise resolving to the valid set of selections.
|
|
1160
1113
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/dependency-prompts.ts}
|
|
1161
|
-
*/
|
|
1162
|
-
|
|
1163
|
-
return new dependency_1.DependencyPrompt(options).run();
|
|
1114
|
+
*/ static dependency(options) {
|
|
1115
|
+
return new _dependency.DependencyPrompt(options).run();
|
|
1164
1116
|
}
|
|
1165
1117
|
/**
|
|
1166
1118
|
* Open Source License selector.
|
|
@@ -1171,9 +1123,8 @@ class MepCLI {
|
|
|
1171
1123
|
* @param options - Default license.
|
|
1172
1124
|
* @returns A promise resolving to the SPDX ID.
|
|
1173
1125
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/license-prompts.ts}
|
|
1174
|
-
*/
|
|
1175
|
-
|
|
1176
|
-
return new license_1.LicensePrompt(options).run();
|
|
1126
|
+
*/ static license(options) {
|
|
1127
|
+
return new _license.LicensePrompt(options).run();
|
|
1177
1128
|
}
|
|
1178
1129
|
/**
|
|
1179
1130
|
* Regex Builder & Tester.
|
|
@@ -1185,9 +1136,8 @@ class MepCLI {
|
|
|
1185
1136
|
* @param options - Test cases to validate against.
|
|
1186
1137
|
* @returns A promise resolving to the RegExp object.
|
|
1187
1138
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/regex-prompt.ts}
|
|
1188
|
-
*/
|
|
1189
|
-
|
|
1190
|
-
return new regex_1.RegexPrompt(options).run();
|
|
1139
|
+
*/ static regex(options) {
|
|
1140
|
+
return new _regex.RegexPrompt(options).run();
|
|
1191
1141
|
}
|
|
1192
1142
|
/**
|
|
1193
1143
|
* Box Model Editor (CSS style).
|
|
@@ -1199,9 +1149,8 @@ class MepCLI {
|
|
|
1199
1149
|
* @param options - Initial dimensions.
|
|
1200
1150
|
* @returns A promise resolving to the box object.
|
|
1201
1151
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/box-prompt.ts}
|
|
1202
|
-
*/
|
|
1203
|
-
|
|
1204
|
-
return new box_1.BoxPrompt(options).run();
|
|
1152
|
+
*/ static box(options) {
|
|
1153
|
+
return new _box.BoxPrompt(options).run();
|
|
1205
1154
|
}
|
|
1206
1155
|
/**
|
|
1207
1156
|
* Database Connection String Builder.
|
|
@@ -1213,9 +1162,8 @@ class MepCLI {
|
|
|
1213
1162
|
* @param options - Initial URL.
|
|
1214
1163
|
* @returns A promise resolving to parsed connection details.
|
|
1215
1164
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/connection-string-prompt.ts}
|
|
1216
|
-
*/
|
|
1217
|
-
|
|
1218
|
-
return (0, connection_string_1.connectionString)(options);
|
|
1165
|
+
*/ static connectionString(options) {
|
|
1166
|
+
return (0, _connectionstring.connectionString)(options);
|
|
1219
1167
|
}
|
|
1220
1168
|
/**
|
|
1221
1169
|
* cURL Command Builder.
|
|
@@ -1227,9 +1175,8 @@ class MepCLI {
|
|
|
1227
1175
|
* @param options - Initial command.
|
|
1228
1176
|
* @returns A promise resolving to the parsed request object.
|
|
1229
1177
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/curl-prompt.ts}
|
|
1230
|
-
*/
|
|
1231
|
-
|
|
1232
|
-
return new curl_1.CurlPrompt(options).run();
|
|
1178
|
+
*/ static curl(options) {
|
|
1179
|
+
return new _curl.CurlPrompt(options).run();
|
|
1233
1180
|
}
|
|
1234
1181
|
/**
|
|
1235
1182
|
* Phone Number input (with country codes).
|
|
@@ -1241,9 +1188,8 @@ class MepCLI {
|
|
|
1241
1188
|
* @param options - Default country ISO code.
|
|
1242
1189
|
* @returns A promise resolving to the formatted number.
|
|
1243
1190
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/phone-prompt.ts}
|
|
1244
|
-
*/
|
|
1245
|
-
|
|
1246
|
-
return new phone_1.PhonePrompt(options).run();
|
|
1191
|
+
*/ static phone(options) {
|
|
1192
|
+
return new _phone.PhonePrompt(options).run();
|
|
1247
1193
|
}
|
|
1248
1194
|
/**
|
|
1249
1195
|
* Fuzzy Multi-Column Selection.
|
|
@@ -1259,9 +1205,8 @@ class MepCLI {
|
|
|
1259
1205
|
* @param options - Choices and layout columns.
|
|
1260
1206
|
* @returns A promise resolving to the selected value.
|
|
1261
1207
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/fuzzy-multi-column-prompt.ts}
|
|
1262
|
-
*/
|
|
1263
|
-
|
|
1264
|
-
return new fuzzy_multi_column_1.FuzzyMultiColumnPrompt(options).run();
|
|
1208
|
+
*/ static fuzzyMultiColumn(options) {
|
|
1209
|
+
return new _fuzzymulticolumn.FuzzyMultiColumnPrompt(options).run();
|
|
1265
1210
|
}
|
|
1266
1211
|
/**
|
|
1267
1212
|
* Multi-Range Selection (Discontinuous).
|
|
@@ -1273,9 +1218,8 @@ class MepCLI {
|
|
|
1273
1218
|
* @param options - Choices.
|
|
1274
1219
|
* @returns A promise resolving to selected values.
|
|
1275
1220
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/multi-range-prompt.ts}
|
|
1276
|
-
*/
|
|
1277
|
-
|
|
1278
|
-
return new multi_range_1.MultiRangePrompt(options).run();
|
|
1221
|
+
*/ static multiRange(options) {
|
|
1222
|
+
return new _multirange.MultiRangePrompt(options).run();
|
|
1279
1223
|
}
|
|
1280
1224
|
/**
|
|
1281
1225
|
* Breadcrumb Search (Navigator + Fuzzy Search).
|
|
@@ -1287,10 +1231,10 @@ class MepCLI {
|
|
|
1287
1231
|
* @param options - Root path.
|
|
1288
1232
|
* @returns A promise resolving to the selected path.
|
|
1289
1233
|
* @see {@link https://github.com/CodeTease/mep/blob/main/examples/breadcrumb-search-prompt.ts}
|
|
1290
|
-
*/
|
|
1291
|
-
|
|
1292
|
-
return new breadcrumb_search_1.BreadcrumbSearchPrompt(options).run();
|
|
1234
|
+
*/ static breadcrumbSearch(options) {
|
|
1235
|
+
return new _breadcrumbsearch.BreadcrumbSearchPrompt(options).run();
|
|
1293
1236
|
}
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1237
|
+
};
|
|
1238
|
+
_define_property(MepCLI, "theme", _theme.theme);
|
|
1239
|
+
|
|
1240
|
+
//# sourceMappingURL=core.js.map
|