@outfitter/cli 0.1.0-rc.2 → 0.1.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.
- package/README.md +21 -32
- package/dist/actions.d.ts +12 -1
- package/dist/actions.js +170 -3
- package/dist/borders/index.d.ts +3 -0
- package/dist/borders/index.js +13 -0
- package/dist/box/index.d.ts +4 -0
- package/dist/box/index.js +13 -0
- package/dist/cli.js +1 -1
- package/dist/colors/index.d.ts +3 -0
- package/dist/colors/index.js +18 -0
- package/dist/command.d.ts +40 -3
- package/dist/command.js +45 -3
- package/dist/demo/index.d.ts +78 -0
- package/dist/demo/index.js +148 -0
- package/dist/demo/registry.d.ts +7 -0
- package/dist/demo/registry.js +28 -0
- package/dist/demo/renderers/borders.d.ts +7 -0
- package/dist/demo/renderers/borders.js +17 -0
- package/dist/demo/renderers/box.d.ts +7 -0
- package/dist/demo/renderers/box.js +18 -0
- package/dist/demo/renderers/colors.d.ts +7 -0
- package/dist/demo/renderers/colors.js +18 -0
- package/dist/demo/renderers/indicators.d.ts +7 -0
- package/dist/demo/renderers/indicators.js +17 -0
- package/dist/demo/renderers/list.d.ts +7 -0
- package/dist/demo/renderers/list.js +19 -0
- package/dist/demo/renderers/markdown.d.ts +7 -0
- package/dist/demo/renderers/markdown.js +18 -0
- package/dist/demo/renderers/progress.d.ts +7 -0
- package/dist/demo/renderers/progress.js +17 -0
- package/dist/demo/renderers/spinner.d.ts +7 -0
- package/dist/demo/renderers/spinner.js +19 -0
- package/dist/demo/renderers/table.d.ts +7 -0
- package/dist/demo/renderers/table.js +19 -0
- package/dist/demo/renderers/text.d.ts +7 -0
- package/dist/demo/renderers/text.js +16 -0
- package/dist/demo/renderers/tree.d.ts +7 -0
- package/dist/demo/renderers/tree.js +18 -0
- package/dist/demo/section.d.ts +5 -0
- package/dist/demo/section.js +23 -0
- package/dist/demo/templates.d.ts +4 -0
- package/dist/demo/templates.js +10 -0
- package/dist/demo/types.d.ts +3 -0
- package/dist/demo/types.js +8 -0
- package/dist/index.d.ts +5 -8
- package/dist/index.js +9 -43
- package/dist/input.d.ts +163 -2
- package/dist/input.js +425 -11
- package/dist/list/index.d.ts +3 -0
- package/dist/list/index.js +9 -0
- package/dist/output.js +1 -1
- package/dist/pagination.d.ts +62 -2
- package/dist/pagination.js +84 -6
- package/dist/preset/full.d.ts +14 -0
- package/dist/preset/full.js +41 -0
- package/dist/preset/standard.d.ts +11 -0
- package/dist/preset/standard.js +30 -0
- package/dist/prompt/confirm.d.ts +4 -0
- package/dist/prompt/confirm.js +9 -0
- package/dist/prompt/group.d.ts +4 -0
- package/dist/prompt/group.js +9 -0
- package/dist/prompt/index.d.ts +7 -0
- package/dist/prompt/index.js +32 -0
- package/dist/prompt/select.d.ts +4 -0
- package/dist/prompt/select.js +11 -0
- package/dist/prompt/text.d.ts +4 -0
- package/dist/prompt/text.js +11 -0
- package/dist/prompt/types.d.ts +3 -0
- package/dist/prompt/types.js +8 -0
- package/dist/prompt/validators.d.ts +2 -0
- package/dist/prompt/validators.js +8 -0
- package/dist/render/borders.d.ts +2 -0
- package/dist/render/borders.js +15 -0
- package/dist/render/box.d.ts +3 -0
- package/dist/render/box.js +23 -0
- package/dist/render/colors.d.ts +1 -1
- package/dist/render/colors.js +6 -3
- package/dist/render/date.js +1 -1
- package/dist/render/format-relative.js +1 -1
- package/dist/render/format.js +1 -1
- package/dist/render/heading.d.ts +3 -0
- package/dist/render/heading.js +14 -0
- package/dist/render/index.d.ts +26 -7
- package/dist/render/index.js +160 -26
- package/dist/render/indicators.d.ts +2 -0
- package/dist/render/indicators.js +14 -0
- package/dist/render/json.js +1 -1
- package/dist/render/layout.d.ts +5 -0
- package/dist/render/layout.js +25 -0
- package/dist/render/list.d.ts +2 -2
- package/dist/render/list.js +2 -2
- package/dist/render/markdown.js +4 -4
- package/dist/render/progress.js +1 -1
- package/dist/render/separator.d.ts +3 -0
- package/dist/render/separator.js +14 -0
- package/dist/render/shapes.js +10 -9
- package/dist/render/spinner.d.ts +2 -0
- package/dist/render/spinner.js +12 -0
- package/dist/render/stack.d.ts +3 -0
- package/dist/render/stack.js +38 -0
- package/dist/render/table.d.ts +2 -1
- package/dist/render/table.js +6 -5
- package/dist/render/text.d.ts +1 -1
- package/dist/render/text.js +7 -4
- package/dist/render/tree.d.ts +2 -2
- package/dist/render/tree.js +5 -3
- package/dist/render/types.d.ts +2 -0
- package/dist/render/types.js +1 -0
- package/dist/shared/@outfitter/cli-0ggcy7fa.js +20 -0
- package/dist/shared/@outfitter/cli-0psys2vm.js +7 -0
- package/dist/shared/@outfitter/cli-1bghjef6.js +352 -0
- package/dist/shared/@outfitter/cli-1kwbnt86.d.ts +45 -0
- package/dist/shared/@outfitter/cli-2g8bx1aq.d.ts +50 -0
- package/dist/shared/@outfitter/cli-34fqr7bp.js +37 -0
- package/dist/shared/@outfitter/cli-3b7ed3rm.d.ts +97 -0
- package/dist/shared/@outfitter/cli-3dxmmy4c.d.ts +20 -0
- package/dist/shared/@outfitter/cli-3f12z5kf.d.ts +83 -0
- package/dist/shared/@outfitter/cli-3t2zaenc.d.ts +59 -0
- package/dist/shared/@outfitter/{cli-dds0qqvm.d.ts → cli-4cb5g831.d.ts} +2 -0
- package/dist/shared/@outfitter/cli-4w2a1rfy.d.ts +23 -0
- package/dist/shared/@outfitter/cli-4x6pqnez.js +20 -0
- package/dist/shared/@outfitter/cli-671sxkhj.js +146 -0
- package/dist/shared/@outfitter/cli-6bztk73z.d.ts +51 -0
- package/dist/shared/@outfitter/cli-6fxffp8k.js +1 -0
- package/dist/shared/@outfitter/cli-6j9qynm8.js +118 -0
- package/dist/shared/@outfitter/cli-6m988kh0.d.ts +61 -0
- package/dist/shared/@outfitter/cli-74ba31gz.js +134 -0
- package/dist/shared/@outfitter/cli-7gnrb8cr.js +214 -0
- package/dist/shared/@outfitter/cli-7nm6edvh.d.ts +17 -0
- package/dist/shared/@outfitter/cli-85fg2vr5.js +123 -0
- package/dist/shared/@outfitter/cli-8a8xrzhy.js +20 -0
- package/dist/shared/@outfitter/cli-8bwaw3pz.js +7 -0
- package/dist/shared/@outfitter/cli-8rx4g3s5.d.ts +41 -0
- package/dist/shared/@outfitter/cli-8xsmsbbd.d.ts +223 -0
- package/dist/shared/@outfitter/cli-96b2p4td.d.ts +56 -0
- package/dist/shared/@outfitter/cli-9khk3cbq.d.ts +190 -0
- package/dist/shared/@outfitter/cli-9mtjjykw.js +67 -0
- package/dist/shared/@outfitter/{cli-ag0w4pk0.js → cli-9nbyj2bt.js} +60 -21
- package/dist/shared/@outfitter/{cli-azzk8a1d.js → cli-afhjqmg3.js} +7 -3
- package/dist/shared/@outfitter/cli-an9j0h80.js +117 -0
- package/dist/shared/@outfitter/cli-ay411nbr.js +122 -0
- package/dist/shared/@outfitter/cli-b0tzqgnf.d.ts +132 -0
- package/dist/shared/@outfitter/cli-b5c2k0d7.js +39 -0
- package/dist/shared/@outfitter/cli-b5epywry.js +1 -0
- package/dist/shared/@outfitter/cli-bcmcaz1b.js +23 -0
- package/dist/shared/@outfitter/cli-bf3vma4q.js +61 -0
- package/dist/shared/@outfitter/cli-cf1xexgn.d.ts +53 -0
- package/dist/shared/@outfitter/cli-cs45xd6q.js +59 -0
- package/dist/shared/@outfitter/cli-d7jpshq5.d.ts +128 -0
- package/dist/shared/@outfitter/{cli-jbj78ac5.js → cli-d9ad0rqj.js} +6 -1
- package/dist/shared/@outfitter/cli-daw296mv.js +61 -0
- package/dist/shared/@outfitter/cli-e5ms1y0x.d.ts +91 -0
- package/dist/shared/@outfitter/cli-e73v3qqy.d.ts +93 -0
- package/dist/shared/@outfitter/cli-en6zn6sj.js +1 -0
- package/dist/shared/@outfitter/cli-ep2cvtk8.js +48 -0
- package/dist/shared/@outfitter/cli-f75h8e94.js +7 -0
- package/dist/shared/@outfitter/cli-fakncnjp.d.ts +106 -0
- package/dist/shared/@outfitter/cli-feb5j90n.js +94 -0
- package/dist/shared/@outfitter/cli-h20jc0bs.d.ts +66 -0
- package/dist/shared/@outfitter/cli-hnpbqmc8.d.ts +328 -0
- package/dist/shared/@outfitter/cli-j4n8gaf3.js +95 -0
- package/dist/shared/@outfitter/cli-jejfypgf.js +85 -0
- package/dist/shared/@outfitter/{cli-wqc652mx.js → cli-jhcdwvpn.js} +8 -8
- package/dist/shared/@outfitter/{cli-v9mjsvjh.js → cli-jjemfdta.js} +13 -46
- package/dist/shared/@outfitter/cli-kc84wmch.js +267 -0
- package/dist/shared/@outfitter/cli-ktqme80d.js +7 -0
- package/dist/shared/@outfitter/cli-mq0jp15z.js +1 -0
- package/dist/shared/@outfitter/cli-mymyavvj.d.ts +26 -0
- package/dist/shared/@outfitter/cli-n17gt1dz.js +19 -0
- package/dist/shared/@outfitter/cli-n9dbh0hp.js +51 -0
- package/dist/shared/@outfitter/cli-nvvc92c8.js +128 -0
- package/dist/shared/@outfitter/cli-p1m5dhrs.js +169 -0
- package/dist/shared/@outfitter/cli-p38sfxyk.js +25 -0
- package/dist/shared/@outfitter/cli-p3dqm1vd.js +22 -0
- package/dist/shared/@outfitter/cli-p9j1phge.js +20 -0
- package/dist/shared/@outfitter/cli-pkxmzavm.js +62 -0
- package/dist/shared/@outfitter/cli-q8r6jarq.d.ts +24 -0
- package/dist/shared/@outfitter/{cli-2y3kxew8.d.ts → cli-qj83y5wj.d.ts} +22 -9
- package/dist/shared/@outfitter/cli-qjfc3j11.d.ts +112 -0
- package/dist/shared/@outfitter/cli-qp4cbhqr.js +70 -0
- package/dist/shared/@outfitter/cli-s0kkx9m1.d.ts +164 -0
- package/dist/shared/@outfitter/cli-snxj55n6.js +43 -0
- package/dist/shared/@outfitter/cli-swwxvjvm.d.ts +24 -0
- package/dist/shared/@outfitter/cli-sx67mmfx.d.ts +98 -0
- package/dist/shared/@outfitter/cli-tarpsa8a.js +30 -0
- package/dist/shared/@outfitter/cli-thvzhjd1.js +126 -0
- package/dist/shared/@outfitter/cli-tqewy503.d.ts +36 -0
- package/dist/shared/@outfitter/cli-tvw1xrdj.js +20 -0
- package/dist/shared/@outfitter/cli-v1tzwxkt.js +32 -0
- package/dist/shared/@outfitter/cli-vd60dj65.js +1 -0
- package/dist/shared/@outfitter/cli-vp88gxev.js +279 -0
- package/dist/shared/@outfitter/cli-vstbkzky.d.ts +74 -0
- package/dist/shared/@outfitter/cli-vtg0sqk2.d.ts +54 -0
- package/dist/shared/@outfitter/cli-w5y3xepp.js +20 -0
- package/dist/shared/@outfitter/cli-x4cavvc0.js +1 -0
- package/dist/shared/@outfitter/cli-xep6v2c0.js +52 -0
- package/dist/shared/@outfitter/cli-xg5y5fhk.js +86 -0
- package/dist/shared/@outfitter/{cli-n51t773m.d.ts → cli-xsaheemc.d.ts} +44 -4
- package/dist/shared/@outfitter/cli-xvqtqjxk.js +82 -0
- package/dist/shared/@outfitter/cli-y25tt8nc.d.ts +48 -0
- package/dist/streaming/ansi.d.ts +2 -0
- package/dist/streaming/ansi.js +8 -0
- package/dist/streaming/index.d.ts +4 -0
- package/dist/streaming/index.js +17 -0
- package/dist/streaming/spinner.d.ts +3 -0
- package/dist/streaming/spinner.js +10 -0
- package/dist/streaming/writer.d.ts +2 -0
- package/dist/streaming/writer.js +9 -0
- package/dist/table/index.d.ts +4 -0
- package/dist/table/index.js +13 -0
- package/dist/terminal/detection.js +5 -2
- package/dist/terminal/index.js +6 -2
- package/dist/theme/context.d.ts +9 -0
- package/dist/theme/context.js +14 -0
- package/dist/theme/create.d.ts +8 -0
- package/dist/theme/create.js +12 -0
- package/dist/theme/index.d.ts +17 -0
- package/dist/theme/index.js +42 -0
- package/dist/theme/presets/bold.d.ts +8 -0
- package/dist/theme/presets/bold.js +12 -0
- package/dist/theme/presets/default.d.ts +8 -0
- package/dist/theme/presets/default.js +11 -0
- package/dist/theme/presets/index.d.ts +12 -0
- package/dist/theme/presets/index.js +24 -0
- package/dist/theme/presets/minimal.d.ts +8 -0
- package/dist/theme/presets/minimal.js +12 -0
- package/dist/theme/presets/rounded.d.ts +8 -0
- package/dist/theme/presets/rounded.js +12 -0
- package/dist/theme/resolve.d.ts +8 -0
- package/dist/theme/resolve.js +11 -0
- package/dist/theme/types.d.ts +7 -0
- package/dist/theme/types.js +1 -0
- package/dist/tree/index.d.ts +3 -0
- package/dist/tree/index.js +11 -0
- package/dist/types.js +1 -1
- package/package.json +168 -54
- package/dist/shared/@outfitter/cli-2vs2gxa8.js +0 -429
- package/dist/shared/@outfitter/cli-2yq94zst.d.ts +0 -39
- package/dist/shared/@outfitter/cli-6xc869x1.js +0 -26
- package/dist/shared/@outfitter/cli-7km1e58p.js +0 -85
- package/dist/shared/@outfitter/cli-8r0bnyyx.js +0 -43
- package/dist/shared/@outfitter/cli-afecwfrn.d.ts +0 -13
- package/dist/shared/@outfitter/cli-bt423m6y.js +0 -4
- package/dist/shared/@outfitter/cli-d4fegbad.d.ts +0 -66
- package/dist/shared/@outfitter/cli-e0ecw3x1.js +0 -64
- package/dist/shared/@outfitter/cli-fheaaa6b.js +0 -25
- package/dist/shared/@outfitter/cli-j361wp3g.d.ts +0 -41
- package/dist/shared/@outfitter/cli-p0m2fc51.js +0 -172
- package/dist/shared/@outfitter/cli-tyajr8qa.d.ts +0 -63
- package/dist/shared/@outfitter/cli-zs6jy1am.d.ts +0 -164
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
__require
|
|
4
|
-
} from "./cli-bt423m6y.js";
|
|
5
|
-
|
|
6
|
-
// packages/cli/src/input.ts
|
|
7
|
-
import path from "path";
|
|
8
|
-
import { CancelledError, ValidationError } from "@outfitter/contracts";
|
|
9
|
-
import { Err, Ok } from "better-result";
|
|
10
|
-
function isSecurePath(filePath, allowAbsolute = false) {
|
|
11
|
-
if (filePath.includes("\x00")) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
if (filePath.includes("..")) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
const normalized = path.normalize(filePath);
|
|
18
|
-
if (!allowAbsolute && path.isAbsolute(normalized)) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
function isSecureGlobPattern(pattern) {
|
|
24
|
-
if (pattern.startsWith("..")) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
if (pattern.includes("/../")) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function isWithinWorkspace(resolvedPath, workspaceRoot) {
|
|
33
|
-
const normalizedPath = path.normalize(resolvedPath);
|
|
34
|
-
const normalizedRoot = path.normalize(workspaceRoot);
|
|
35
|
-
return normalizedPath === normalizedRoot || normalizedPath.startsWith(normalizedRoot + path.sep);
|
|
36
|
-
}
|
|
37
|
-
async function readStdin() {
|
|
38
|
-
const chunks = [];
|
|
39
|
-
for await (const chunk of process.stdin) {
|
|
40
|
-
if (typeof chunk === "string") {
|
|
41
|
-
chunks.push(chunk);
|
|
42
|
-
} else if (Buffer.isBuffer(chunk)) {
|
|
43
|
-
chunks.push(chunk.toString("utf-8"));
|
|
44
|
-
} else if (chunk instanceof Uint8Array) {
|
|
45
|
-
chunks.push(Buffer.from(chunk).toString("utf-8"));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return chunks.join("");
|
|
49
|
-
}
|
|
50
|
-
function splitIds(input) {
|
|
51
|
-
return input.split(",").flatMap((part) => part.trim().split(/\s+/)).map((id) => id.trim()).filter(Boolean);
|
|
52
|
-
}
|
|
53
|
-
async function isDirectory(path2) {
|
|
54
|
-
try {
|
|
55
|
-
const result = await Bun.$`test -d ${path2}`.quiet();
|
|
56
|
-
return result.exitCode === 0;
|
|
57
|
-
} catch {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
async function isFile(path2) {
|
|
62
|
-
try {
|
|
63
|
-
const result = await Bun.$`test -f ${path2}`.quiet();
|
|
64
|
-
return result.exitCode === 0;
|
|
65
|
-
} catch {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
async function collectIds(input, options) {
|
|
70
|
-
const { allowFile = true, allowStdin = true } = options ?? {};
|
|
71
|
-
const ids = [];
|
|
72
|
-
const inputs = Array.isArray(input) ? input : [input];
|
|
73
|
-
for (const item of inputs) {
|
|
74
|
-
if (!item)
|
|
75
|
-
continue;
|
|
76
|
-
if (item.startsWith("@")) {
|
|
77
|
-
const filePath = item.slice(1);
|
|
78
|
-
if (filePath === "-") {
|
|
79
|
-
if (!allowStdin) {
|
|
80
|
-
throw new Error("Reading from stdin is not allowed");
|
|
81
|
-
}
|
|
82
|
-
const stdinContent = await readStdin();
|
|
83
|
-
const stdinIds = stdinContent.split(`
|
|
84
|
-
`).map((line) => line.trim()).filter(Boolean);
|
|
85
|
-
ids.push(...stdinIds);
|
|
86
|
-
} else {
|
|
87
|
-
if (!allowFile) {
|
|
88
|
-
throw new Error("File references are not allowed");
|
|
89
|
-
}
|
|
90
|
-
if (!isSecurePath(filePath, true)) {
|
|
91
|
-
throw new Error(`Security error: path traversal not allowed: ${filePath}`);
|
|
92
|
-
}
|
|
93
|
-
const file = Bun.file(filePath);
|
|
94
|
-
const exists = await file.exists();
|
|
95
|
-
if (!exists) {
|
|
96
|
-
throw new Error(`File not found: ${filePath}`);
|
|
97
|
-
}
|
|
98
|
-
const content = await file.text();
|
|
99
|
-
const fileIds = content.split(`
|
|
100
|
-
`).map((line) => line.trim()).filter(Boolean);
|
|
101
|
-
ids.push(...fileIds);
|
|
102
|
-
}
|
|
103
|
-
} else {
|
|
104
|
-
ids.push(...splitIds(item));
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return [...new Set(ids)];
|
|
108
|
-
}
|
|
109
|
-
async function expandFileArg(input, options) {
|
|
110
|
-
const {
|
|
111
|
-
encoding: _encoding = "utf-8",
|
|
112
|
-
maxSize,
|
|
113
|
-
trim = false
|
|
114
|
-
} = options ?? {};
|
|
115
|
-
if (!input.startsWith("@")) {
|
|
116
|
-
return input;
|
|
117
|
-
}
|
|
118
|
-
const filePath = input.slice(1);
|
|
119
|
-
if (filePath === "-") {
|
|
120
|
-
let content2 = await readStdin();
|
|
121
|
-
if (trim) {
|
|
122
|
-
content2 = content2.trim();
|
|
123
|
-
}
|
|
124
|
-
return content2;
|
|
125
|
-
}
|
|
126
|
-
if (!isSecurePath(filePath, true)) {
|
|
127
|
-
throw new Error(`Security error: path traversal not allowed: ${filePath}`);
|
|
128
|
-
}
|
|
129
|
-
const file = Bun.file(filePath);
|
|
130
|
-
const exists = await file.exists();
|
|
131
|
-
if (!exists) {
|
|
132
|
-
throw new Error(`File not found: ${filePath}`);
|
|
133
|
-
}
|
|
134
|
-
if (maxSize !== undefined) {
|
|
135
|
-
const size = file.size;
|
|
136
|
-
if (size > maxSize) {
|
|
137
|
-
throw new Error(`File exceeds maximum size of ${maxSize} bytes`);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
let content = await file.text();
|
|
141
|
-
if (trim) {
|
|
142
|
-
content = content.trim();
|
|
143
|
-
}
|
|
144
|
-
return content;
|
|
145
|
-
}
|
|
146
|
-
async function parseGlob(pattern, options) {
|
|
147
|
-
const {
|
|
148
|
-
cwd = process.cwd(),
|
|
149
|
-
ignore = [],
|
|
150
|
-
onlyFiles = false,
|
|
151
|
-
onlyDirectories = false,
|
|
152
|
-
followSymlinks = false
|
|
153
|
-
} = options ?? {};
|
|
154
|
-
if (!isSecureGlobPattern(pattern)) {
|
|
155
|
-
throw new Error(`Security error: glob pattern may escape workspace: ${pattern}`);
|
|
156
|
-
}
|
|
157
|
-
const resolvedCwd = path.resolve(cwd);
|
|
158
|
-
const glob = new Bun.Glob(pattern);
|
|
159
|
-
const matches = [];
|
|
160
|
-
const scanOptions = {
|
|
161
|
-
cwd,
|
|
162
|
-
followSymlinks,
|
|
163
|
-
onlyFiles: onlyFiles === true
|
|
164
|
-
};
|
|
165
|
-
for await (const match of glob.scan(scanOptions)) {
|
|
166
|
-
const fullPath = path.resolve(cwd, match);
|
|
167
|
-
if (!isWithinWorkspace(fullPath, resolvedCwd)) {
|
|
168
|
-
continue;
|
|
169
|
-
}
|
|
170
|
-
let shouldIgnore = false;
|
|
171
|
-
for (const ignorePattern of ignore) {
|
|
172
|
-
const ignoreGlob = new Bun.Glob(ignorePattern);
|
|
173
|
-
if (ignoreGlob.match(match)) {
|
|
174
|
-
shouldIgnore = true;
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
if (shouldIgnore)
|
|
179
|
-
continue;
|
|
180
|
-
if (onlyDirectories) {
|
|
181
|
-
const isDir = await isDirectory(fullPath);
|
|
182
|
-
if (!isDir)
|
|
183
|
-
continue;
|
|
184
|
-
}
|
|
185
|
-
if (onlyFiles) {
|
|
186
|
-
const isF = await isFile(fullPath);
|
|
187
|
-
if (!isF)
|
|
188
|
-
continue;
|
|
189
|
-
}
|
|
190
|
-
matches.push(match);
|
|
191
|
-
}
|
|
192
|
-
return matches;
|
|
193
|
-
}
|
|
194
|
-
function parseKeyValue(input) {
|
|
195
|
-
const pairs = [];
|
|
196
|
-
const inputs = Array.isArray(input) ? input : [input];
|
|
197
|
-
for (const item of inputs) {
|
|
198
|
-
if (!item)
|
|
199
|
-
continue;
|
|
200
|
-
const parts = item.split(",");
|
|
201
|
-
for (const part of parts) {
|
|
202
|
-
const trimmed = part.trim();
|
|
203
|
-
if (!trimmed)
|
|
204
|
-
continue;
|
|
205
|
-
const eqIndex = trimmed.indexOf("=");
|
|
206
|
-
if (eqIndex === -1) {
|
|
207
|
-
return new Err(new ValidationError({
|
|
208
|
-
message: `Missing '=' in key-value pair: ${trimmed}`
|
|
209
|
-
}));
|
|
210
|
-
}
|
|
211
|
-
const key = trimmed.slice(0, eqIndex).trim();
|
|
212
|
-
const value = trimmed.slice(eqIndex + 1);
|
|
213
|
-
if (!key) {
|
|
214
|
-
return new Err(new ValidationError({ message: "Empty key in key-value pair" }));
|
|
215
|
-
}
|
|
216
|
-
pairs.push({ key, value });
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return new Ok(pairs);
|
|
220
|
-
}
|
|
221
|
-
function parseRange(input, type) {
|
|
222
|
-
const trimmed = input.trim();
|
|
223
|
-
if (type === "date") {
|
|
224
|
-
const parts = trimmed.split("..");
|
|
225
|
-
if (parts.length === 1) {
|
|
226
|
-
const dateStr = parts[0];
|
|
227
|
-
if (dateStr === undefined) {
|
|
228
|
-
return new Err(new ValidationError({ message: "Empty date input" }));
|
|
229
|
-
}
|
|
230
|
-
const date = new Date(dateStr.trim());
|
|
231
|
-
if (Number.isNaN(date.getTime())) {
|
|
232
|
-
return new Err(new ValidationError({ message: `Invalid date format: ${dateStr}` }));
|
|
233
|
-
}
|
|
234
|
-
return new Ok({ type: "date", start: date, end: date });
|
|
235
|
-
}
|
|
236
|
-
if (parts.length === 2) {
|
|
237
|
-
const startStr = parts[0];
|
|
238
|
-
const endStr = parts[1];
|
|
239
|
-
if (startStr === undefined || endStr === undefined) {
|
|
240
|
-
return new Err(new ValidationError({ message: "Invalid date range format" }));
|
|
241
|
-
}
|
|
242
|
-
const start = new Date(startStr.trim());
|
|
243
|
-
const end = new Date(endStr.trim());
|
|
244
|
-
if (Number.isNaN(start.getTime())) {
|
|
245
|
-
return new Err(new ValidationError({ message: `Invalid date format: ${startStr}` }));
|
|
246
|
-
}
|
|
247
|
-
if (Number.isNaN(end.getTime())) {
|
|
248
|
-
return new Err(new ValidationError({ message: `Invalid date format: ${endStr}` }));
|
|
249
|
-
}
|
|
250
|
-
if (start.getTime() > end.getTime()) {
|
|
251
|
-
return new Err(new ValidationError({
|
|
252
|
-
message: "Start date must be before or equal to end date"
|
|
253
|
-
}));
|
|
254
|
-
}
|
|
255
|
-
return new Ok({ type: "date", start, end });
|
|
256
|
-
}
|
|
257
|
-
return new Err(new ValidationError({ message: `Invalid date range format: ${input}` }));
|
|
258
|
-
}
|
|
259
|
-
const singleNum = Number(trimmed);
|
|
260
|
-
if (!(Number.isNaN(singleNum) || trimmed.includes("-", trimmed.startsWith("-") ? 1 : 0))) {
|
|
261
|
-
return new Ok({ type: "number", min: singleNum, max: singleNum });
|
|
262
|
-
}
|
|
263
|
-
let separatorIndex = -1;
|
|
264
|
-
for (let i = 1;i < trimmed.length; i++) {
|
|
265
|
-
const char = trimmed[i];
|
|
266
|
-
const prevChar = trimmed[i - 1];
|
|
267
|
-
if (char === "-" && prevChar !== undefined && /[\d\s]/.test(prevChar)) {
|
|
268
|
-
separatorIndex = i;
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
if (separatorIndex === -1) {
|
|
273
|
-
return new Err(new ValidationError({ message: `Invalid numeric range format: ${input}` }));
|
|
274
|
-
}
|
|
275
|
-
const minStr = trimmed.slice(0, separatorIndex).trim();
|
|
276
|
-
const maxStr = trimmed.slice(separatorIndex + 1).trim();
|
|
277
|
-
const min = Number(minStr);
|
|
278
|
-
const max = Number(maxStr);
|
|
279
|
-
if (Number.isNaN(min)) {
|
|
280
|
-
return new Err(new ValidationError({ message: `Invalid number: ${minStr}` }));
|
|
281
|
-
}
|
|
282
|
-
if (Number.isNaN(max)) {
|
|
283
|
-
return new Err(new ValidationError({ message: `Invalid number: ${maxStr}` }));
|
|
284
|
-
}
|
|
285
|
-
if (min > max) {
|
|
286
|
-
return new Err(new ValidationError({ message: "Min must be less than or equal to max" }));
|
|
287
|
-
}
|
|
288
|
-
return new Ok({ type: "number", min, max });
|
|
289
|
-
}
|
|
290
|
-
function parseFilter(input) {
|
|
291
|
-
const trimmed = input.trim();
|
|
292
|
-
if (!trimmed) {
|
|
293
|
-
return new Ok([]);
|
|
294
|
-
}
|
|
295
|
-
const filters = [];
|
|
296
|
-
const parts = trimmed.split(",");
|
|
297
|
-
for (const part of parts) {
|
|
298
|
-
let partTrimmed = part.trim();
|
|
299
|
-
if (!partTrimmed)
|
|
300
|
-
continue;
|
|
301
|
-
let isNegated = false;
|
|
302
|
-
if (partTrimmed.startsWith("!")) {
|
|
303
|
-
isNegated = true;
|
|
304
|
-
partTrimmed = partTrimmed.slice(1).trim();
|
|
305
|
-
}
|
|
306
|
-
const colonIndex = partTrimmed.indexOf(":");
|
|
307
|
-
if (colonIndex === -1) {
|
|
308
|
-
return new Err(new ValidationError({
|
|
309
|
-
message: `Missing ':' in filter expression: ${part.trim()}`
|
|
310
|
-
}));
|
|
311
|
-
}
|
|
312
|
-
const field = partTrimmed.slice(0, colonIndex).trim();
|
|
313
|
-
let value = partTrimmed.slice(colonIndex + 1).trim();
|
|
314
|
-
let operator;
|
|
315
|
-
if (isNegated) {
|
|
316
|
-
operator = "ne";
|
|
317
|
-
} else if (value.startsWith(">=")) {
|
|
318
|
-
operator = "gte";
|
|
319
|
-
value = value.slice(2).trim();
|
|
320
|
-
} else if (value.startsWith("<=")) {
|
|
321
|
-
operator = "lte";
|
|
322
|
-
value = value.slice(2).trim();
|
|
323
|
-
} else if (value.startsWith(">")) {
|
|
324
|
-
operator = "gt";
|
|
325
|
-
value = value.slice(1).trim();
|
|
326
|
-
} else if (value.startsWith("<")) {
|
|
327
|
-
operator = "lt";
|
|
328
|
-
value = value.slice(1).trim();
|
|
329
|
-
} else if (value.startsWith("~")) {
|
|
330
|
-
operator = "contains";
|
|
331
|
-
value = value.slice(1).trim();
|
|
332
|
-
}
|
|
333
|
-
const filter = { field, value };
|
|
334
|
-
if (operator) {
|
|
335
|
-
filter.operator = operator;
|
|
336
|
-
}
|
|
337
|
-
filters.push(filter);
|
|
338
|
-
}
|
|
339
|
-
return new Ok(filters);
|
|
340
|
-
}
|
|
341
|
-
function parseSortSpec(input) {
|
|
342
|
-
const trimmed = input.trim();
|
|
343
|
-
if (!trimmed) {
|
|
344
|
-
return new Ok([]);
|
|
345
|
-
}
|
|
346
|
-
const criteria = [];
|
|
347
|
-
const parts = trimmed.split(",");
|
|
348
|
-
for (const part of parts) {
|
|
349
|
-
const partTrimmed = part.trim();
|
|
350
|
-
if (!partTrimmed)
|
|
351
|
-
continue;
|
|
352
|
-
const colonIndex = partTrimmed.indexOf(":");
|
|
353
|
-
if (colonIndex === -1) {
|
|
354
|
-
criteria.push({ field: partTrimmed, direction: "asc" });
|
|
355
|
-
} else {
|
|
356
|
-
const field = partTrimmed.slice(0, colonIndex).trim();
|
|
357
|
-
const direction = partTrimmed.slice(colonIndex + 1).trim().toLowerCase();
|
|
358
|
-
if (direction !== "asc" && direction !== "desc") {
|
|
359
|
-
return new Err(new ValidationError({
|
|
360
|
-
message: `Invalid sort direction: ${direction}. Must be 'asc' or 'desc'.`
|
|
361
|
-
}));
|
|
362
|
-
}
|
|
363
|
-
criteria.push({ field, direction });
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
return new Ok(criteria);
|
|
367
|
-
}
|
|
368
|
-
function normalizeId(input, options) {
|
|
369
|
-
const {
|
|
370
|
-
trim = false,
|
|
371
|
-
lowercase = false,
|
|
372
|
-
minLength,
|
|
373
|
-
maxLength,
|
|
374
|
-
pattern
|
|
375
|
-
} = options ?? {};
|
|
376
|
-
let normalized = input;
|
|
377
|
-
if (trim) {
|
|
378
|
-
normalized = normalized.trim();
|
|
379
|
-
}
|
|
380
|
-
if (lowercase) {
|
|
381
|
-
normalized = normalized.toLowerCase();
|
|
382
|
-
}
|
|
383
|
-
if (minLength !== undefined && normalized.length < minLength) {
|
|
384
|
-
return new Err(new ValidationError({
|
|
385
|
-
message: `ID must be at least ${minLength} characters long`,
|
|
386
|
-
field: "id"
|
|
387
|
-
}));
|
|
388
|
-
}
|
|
389
|
-
if (maxLength !== undefined && normalized.length > maxLength) {
|
|
390
|
-
return new Err(new ValidationError({
|
|
391
|
-
message: `ID must be at most ${maxLength} characters long`,
|
|
392
|
-
field: "id"
|
|
393
|
-
}));
|
|
394
|
-
}
|
|
395
|
-
if (pattern && !pattern.test(normalized)) {
|
|
396
|
-
return new Err(new ValidationError({
|
|
397
|
-
message: `ID does not match required pattern: ${pattern.source}`,
|
|
398
|
-
field: "id"
|
|
399
|
-
}));
|
|
400
|
-
}
|
|
401
|
-
return new Ok(normalized);
|
|
402
|
-
}
|
|
403
|
-
async function confirmDestructive(options) {
|
|
404
|
-
const { message, bypassFlag = false, itemCount } = options;
|
|
405
|
-
if (bypassFlag) {
|
|
406
|
-
return new Ok(true);
|
|
407
|
-
}
|
|
408
|
-
const isTTY = process.stdout.isTTY;
|
|
409
|
-
const isDumbTerminal = process.env["TERM"] === "dumb";
|
|
410
|
-
if (!isTTY || isDumbTerminal) {
|
|
411
|
-
return new Err(new CancelledError({
|
|
412
|
-
message: "Cannot prompt for confirmation in non-interactive mode. Use --yes to bypass."
|
|
413
|
-
}));
|
|
414
|
-
}
|
|
415
|
-
let promptMessage = message;
|
|
416
|
-
if (itemCount !== undefined) {
|
|
417
|
-
promptMessage = `${message} (${itemCount} items)`;
|
|
418
|
-
}
|
|
419
|
-
const { confirm, isCancel } = await import("@clack/prompts");
|
|
420
|
-
const response = await confirm({ message: promptMessage });
|
|
421
|
-
if (isCancel(response) || response === false) {
|
|
422
|
-
return new Err(new CancelledError({
|
|
423
|
-
message: "Operation cancelled by user."
|
|
424
|
-
}));
|
|
425
|
-
}
|
|
426
|
-
return new Ok(true);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
export { collectIds, expandFileArg, parseGlob, parseKeyValue, parseRange, parseFilter, parseSortSpec, normalizeId, confirmDestructive };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CommandBuilder } from "./cli-ttt7r0j7";
|
|
2
|
-
/**
|
|
3
|
-
* Create a new command builder with the given name.
|
|
4
|
-
*
|
|
5
|
-
* The command builder provides a fluent API for defining CLI commands
|
|
6
|
-
* with typed flags, arguments, and actions.
|
|
7
|
-
*
|
|
8
|
-
* @param name - Command name and optional argument syntax (e.g., "list" or "get <id>")
|
|
9
|
-
* @returns A CommandBuilder instance for fluent configuration
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```typescript
|
|
13
|
-
* import { command, output } from "@outfitter/cli";
|
|
14
|
-
*
|
|
15
|
-
* const list = command("list")
|
|
16
|
-
* .description("List all notes")
|
|
17
|
-
* .option("--limit <n>", "Max results", "20")
|
|
18
|
-
* .option("--json", "Output as JSON")
|
|
19
|
-
* .option("--next", "Continue from last position")
|
|
20
|
-
* .action(async ({ flags }) => {
|
|
21
|
-
* const results = await listNotes(flags);
|
|
22
|
-
* output(results);
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```typescript
|
|
28
|
-
* // Command with required argument
|
|
29
|
-
* const get = command("get <id>")
|
|
30
|
-
* .description("Get a note by ID")
|
|
31
|
-
* .action(async ({ args }) => {
|
|
32
|
-
* const [id] = args;
|
|
33
|
-
* const note = await getNote(id);
|
|
34
|
-
* output(note);
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
declare function command(name: string): CommandBuilder;
|
|
39
|
-
export { command };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// packages/cli/src/render/tree.ts
|
|
3
|
-
function renderTree(tree) {
|
|
4
|
-
const lines = [];
|
|
5
|
-
const renderNode = (key, value, prefix, isLast) => {
|
|
6
|
-
const connector = isLast ? "\u2514\u2500\u2500 " : "\u251C\u2500\u2500 ";
|
|
7
|
-
lines.push(prefix + connector + key);
|
|
8
|
-
if (value !== null && typeof value === "object") {
|
|
9
|
-
const entries2 = Object.entries(value);
|
|
10
|
-
const childPrefix = prefix + (isLast ? " " : "\u2502 ");
|
|
11
|
-
entries2.forEach(([childKey, childValue], index) => {
|
|
12
|
-
const childIsLast = index === entries2.length - 1;
|
|
13
|
-
renderNode(childKey, childValue, childPrefix, childIsLast);
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
const entries = Object.entries(tree);
|
|
18
|
-
entries.forEach(([key, value], index) => {
|
|
19
|
-
const isLast = index === entries.length - 1;
|
|
20
|
-
renderNode(key, value, "", isLast);
|
|
21
|
-
});
|
|
22
|
-
return lines.join(`
|
|
23
|
-
`);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { renderTree };
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// packages/cli/src/pagination.ts
|
|
3
|
-
import fs from "fs";
|
|
4
|
-
import os from "os";
|
|
5
|
-
import path from "path";
|
|
6
|
-
var UNSAFE_PATH_PATTERN = /(?:^|[\\/])\.\.(?:[\\/]|$)|^[\\/]|^[a-zA-Z]:/;
|
|
7
|
-
function validatePathComponent(component, name) {
|
|
8
|
-
if (UNSAFE_PATH_PATTERN.test(component)) {
|
|
9
|
-
throw new Error(`Security: path traversal detected in ${name}`);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
function getDefaultStateHome() {
|
|
13
|
-
const home = os.homedir();
|
|
14
|
-
switch (process.platform) {
|
|
15
|
-
case "darwin":
|
|
16
|
-
return path.join(home, "Library", "Application Support");
|
|
17
|
-
case "win32":
|
|
18
|
-
return process.env["LOCALAPPDATA"] ?? path.join(home, "AppData", "Local");
|
|
19
|
-
default:
|
|
20
|
-
return path.join(home, ".local", "state");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function getStatePath(options) {
|
|
24
|
-
validatePathComponent(options.command, "command");
|
|
25
|
-
validatePathComponent(options.toolName, "toolName");
|
|
26
|
-
if (options.context) {
|
|
27
|
-
validatePathComponent(options.context, "context");
|
|
28
|
-
}
|
|
29
|
-
const xdgState = process.env["XDG_STATE_HOME"] ?? getDefaultStateHome();
|
|
30
|
-
const parts = [xdgState, options.toolName, "cursors", options.command];
|
|
31
|
-
if (options.context) {
|
|
32
|
-
parts.push(options.context);
|
|
33
|
-
}
|
|
34
|
-
return path.join(...parts, "cursor.json");
|
|
35
|
-
}
|
|
36
|
-
function loadCursor(options) {
|
|
37
|
-
const statePath = getStatePath(options);
|
|
38
|
-
if (!fs.existsSync(statePath)) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
try {
|
|
42
|
-
const content = fs.readFileSync(statePath, "utf-8");
|
|
43
|
-
const parsed = JSON.parse(content);
|
|
44
|
-
if (typeof parsed !== "object" || parsed === null || typeof parsed["cursor"] !== "string") {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const state = parsed;
|
|
48
|
-
if (options.maxAgeMs !== undefined) {
|
|
49
|
-
if (typeof state.timestamp !== "number") {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
const ageMs = Date.now() - state.timestamp;
|
|
53
|
-
if (ageMs > options.maxAgeMs) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
return state;
|
|
58
|
-
} catch {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function saveCursor(cursor, options) {
|
|
63
|
-
const statePath = getStatePath(options);
|
|
64
|
-
const stateDir = path.dirname(statePath);
|
|
65
|
-
fs.mkdirSync(stateDir, { recursive: true });
|
|
66
|
-
const state = {
|
|
67
|
-
cursor,
|
|
68
|
-
command: options.command,
|
|
69
|
-
timestamp: Date.now(),
|
|
70
|
-
hasMore: options.hasMore ?? true,
|
|
71
|
-
...options.context && { context: options.context },
|
|
72
|
-
...options.total !== undefined && { total: options.total }
|
|
73
|
-
};
|
|
74
|
-
fs.writeFileSync(statePath, JSON.stringify(state), "utf-8");
|
|
75
|
-
}
|
|
76
|
-
function clearCursor(options) {
|
|
77
|
-
const statePath = getStatePath(options);
|
|
78
|
-
try {
|
|
79
|
-
if (fs.existsSync(statePath)) {
|
|
80
|
-
fs.unlinkSync(statePath);
|
|
81
|
-
}
|
|
82
|
-
} catch {}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export { loadCursor, saveCursor, clearCursor };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// packages/cli/src/command.ts
|
|
3
|
-
import { Command } from "commander";
|
|
4
|
-
|
|
5
|
-
class CommandBuilderImpl {
|
|
6
|
-
command;
|
|
7
|
-
constructor(name) {
|
|
8
|
-
this.command = new Command(name);
|
|
9
|
-
}
|
|
10
|
-
description(text) {
|
|
11
|
-
this.command.description(text);
|
|
12
|
-
return this;
|
|
13
|
-
}
|
|
14
|
-
option(flags, description, defaultValue) {
|
|
15
|
-
this.command.option(flags, description, defaultValue);
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
requiredOption(flags, description, defaultValue) {
|
|
19
|
-
this.command.requiredOption(flags, description, defaultValue);
|
|
20
|
-
return this;
|
|
21
|
-
}
|
|
22
|
-
alias(alias) {
|
|
23
|
-
this.command.alias(alias);
|
|
24
|
-
return this;
|
|
25
|
-
}
|
|
26
|
-
action(handler) {
|
|
27
|
-
this.command.action(async (...args) => {
|
|
28
|
-
const command = args.at(-1);
|
|
29
|
-
const flags = command.optsWithGlobals?.() ?? command.opts();
|
|
30
|
-
const positional = command.args;
|
|
31
|
-
await handler({ args: positional, flags, command });
|
|
32
|
-
});
|
|
33
|
-
return this;
|
|
34
|
-
}
|
|
35
|
-
build() {
|
|
36
|
-
return this.command;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function command(name) {
|
|
40
|
-
return new CommandBuilderImpl(name);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { command };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ActionRegistry, ActionSurface, AnyActionSpec, HandlerContext } from "@outfitter/contracts";
|
|
2
|
-
import { Command } from "commander";
|
|
3
|
-
interface BuildCliCommandsOptions {
|
|
4
|
-
readonly createContext?: (input: {
|
|
5
|
-
action: AnyActionSpec;
|
|
6
|
-
args: readonly string[];
|
|
7
|
-
flags: Record<string, unknown>;
|
|
8
|
-
}) => HandlerContext;
|
|
9
|
-
readonly includeSurfaces?: readonly ActionSurface[];
|
|
10
|
-
}
|
|
11
|
-
type ActionSource = ActionRegistry | readonly AnyActionSpec[];
|
|
12
|
-
declare function buildCliCommands(source: ActionSource, options?: BuildCliCommandsOptions): Command[];
|
|
13
|
-
export { BuildCliCommandsOptions, buildCliCommands };
|