@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
package/dist/render/index.js
CHANGED
|
@@ -10,92 +10,226 @@ import {
|
|
|
10
10
|
render,
|
|
11
11
|
treeNodeToRecord,
|
|
12
12
|
unregisterRenderer
|
|
13
|
-
} from "../shared/@outfitter/cli-
|
|
13
|
+
} from "../shared/@outfitter/cli-jhcdwvpn.js";
|
|
14
14
|
import {
|
|
15
|
+
renderSeparator
|
|
16
|
+
} from "../shared/@outfitter/cli-p38sfxyk.js";
|
|
17
|
+
import {
|
|
18
|
+
formatRelative
|
|
19
|
+
} from "../shared/@outfitter/cli-8j5k6mr3.js";
|
|
20
|
+
import {
|
|
21
|
+
DEFAULT_STACK_THEME,
|
|
22
|
+
DELIMITERS,
|
|
23
|
+
boxify,
|
|
24
|
+
createHStack,
|
|
25
|
+
createVStack,
|
|
26
|
+
getDelimiter,
|
|
27
|
+
getMarker,
|
|
28
|
+
hstack,
|
|
29
|
+
isRenderable,
|
|
30
|
+
unbox,
|
|
31
|
+
vstack,
|
|
32
|
+
vstackItem
|
|
33
|
+
} from "../shared/@outfitter/cli-1bghjef6.js";
|
|
34
|
+
import {
|
|
35
|
+
endOfDay,
|
|
36
|
+
parseDateRange,
|
|
37
|
+
startOfDay
|
|
38
|
+
} from "../shared/@outfitter/cli-c8q4f71g.js";
|
|
39
|
+
import {
|
|
40
|
+
formatBytes,
|
|
41
|
+
formatDuration
|
|
42
|
+
} from "../shared/@outfitter/cli-j19a91ck.js";
|
|
43
|
+
import {
|
|
44
|
+
renderJson,
|
|
45
|
+
renderText
|
|
46
|
+
} from "../shared/@outfitter/cli-3hp8qwx3.js";
|
|
47
|
+
import"../shared/@outfitter/cli-6fxffp8k.js";
|
|
48
|
+
import"../shared/@outfitter/cli-vd60dj65.js";
|
|
49
|
+
import {
|
|
50
|
+
minimalTheme
|
|
51
|
+
} from "../shared/@outfitter/cli-tarpsa8a.js";
|
|
52
|
+
import {
|
|
53
|
+
createVisualTheme
|
|
54
|
+
} from "../shared/@outfitter/cli-ep2cvtk8.js";
|
|
55
|
+
import {
|
|
56
|
+
createThemedContext,
|
|
57
|
+
getContextTheme
|
|
58
|
+
} from "../shared/@outfitter/cli-p9j1phge.js";
|
|
59
|
+
import {
|
|
60
|
+
resolveGlyph,
|
|
61
|
+
resolveStateMarker
|
|
62
|
+
} from "../shared/@outfitter/cli-0ggcy7fa.js";
|
|
63
|
+
import {
|
|
64
|
+
boldTheme
|
|
65
|
+
} from "../shared/@outfitter/cli-8a8xrzhy.js";
|
|
66
|
+
import {
|
|
67
|
+
roundedTheme
|
|
68
|
+
} from "../shared/@outfitter/cli-w5y3xepp.js";
|
|
69
|
+
import {
|
|
70
|
+
defaultTheme
|
|
71
|
+
} from "../shared/@outfitter/cli-cs45xd6q.js";
|
|
72
|
+
import {
|
|
73
|
+
TREE_GUIDES,
|
|
15
74
|
renderTree
|
|
16
|
-
} from "../shared/@outfitter/cli-
|
|
75
|
+
} from "../shared/@outfitter/cli-b5c2k0d7.js";
|
|
76
|
+
import {
|
|
77
|
+
SPINNERS,
|
|
78
|
+
getSpinnerFrame,
|
|
79
|
+
renderSpinner
|
|
80
|
+
} from "../shared/@outfitter/cli-n9dbh0hp.js";
|
|
17
81
|
import {
|
|
18
82
|
renderList
|
|
19
|
-
} from "../shared/@outfitter/cli-
|
|
83
|
+
} from "../shared/@outfitter/cli-xg5y5fhk.js";
|
|
84
|
+
import {
|
|
85
|
+
INDICATORS,
|
|
86
|
+
getIndicator,
|
|
87
|
+
getProgressIndicator,
|
|
88
|
+
isUnicodeSupported
|
|
89
|
+
} from "../shared/@outfitter/cli-p1m5dhrs.js";
|
|
20
90
|
import {
|
|
21
91
|
renderProgress
|
|
22
92
|
} from "../shared/@outfitter/cli-bc17qeh2.js";
|
|
23
93
|
import {
|
|
24
94
|
renderTable
|
|
25
|
-
} from "../shared/@outfitter/cli-
|
|
95
|
+
} from "../shared/@outfitter/cli-an9j0h80.js";
|
|
96
|
+
import {
|
|
97
|
+
renderMarkdown
|
|
98
|
+
} from "../shared/@outfitter/cli-afhjqmg3.js";
|
|
99
|
+
import {
|
|
100
|
+
renderHeading
|
|
101
|
+
} from "../shared/@outfitter/cli-xvqtqjxk.js";
|
|
102
|
+
import {
|
|
103
|
+
createLayoutContext,
|
|
104
|
+
getBoxOverhead,
|
|
105
|
+
getContentWidth,
|
|
106
|
+
getTerminalWidth,
|
|
107
|
+
joinHorizontal,
|
|
108
|
+
joinVertical,
|
|
109
|
+
resolveWidth
|
|
110
|
+
} from "../shared/@outfitter/cli-671sxkhj.js";
|
|
111
|
+
import {
|
|
112
|
+
createBox,
|
|
113
|
+
init_box,
|
|
114
|
+
normalizeBorders,
|
|
115
|
+
normalizeMargin,
|
|
116
|
+
normalizePadding,
|
|
117
|
+
renderBox
|
|
118
|
+
} from "../shared/@outfitter/cli-vp88gxev.js";
|
|
26
119
|
import {
|
|
27
120
|
ANSI_REGEX,
|
|
28
121
|
getStringWidth,
|
|
122
|
+
init_text,
|
|
29
123
|
padText,
|
|
30
124
|
pluralize,
|
|
31
125
|
slugify,
|
|
32
126
|
stripAnsi,
|
|
33
127
|
truncateText,
|
|
34
128
|
wrapText
|
|
35
|
-
} from "../shared/@outfitter/cli-
|
|
36
|
-
import {
|
|
37
|
-
renderJson,
|
|
38
|
-
renderText
|
|
39
|
-
} from "../shared/@outfitter/cli-3hp8qwx3.js";
|
|
40
|
-
import {
|
|
41
|
-
formatRelative
|
|
42
|
-
} from "../shared/@outfitter/cli-8j5k6mr3.js";
|
|
43
|
-
import {
|
|
44
|
-
endOfDay,
|
|
45
|
-
parseDateRange,
|
|
46
|
-
startOfDay
|
|
47
|
-
} from "../shared/@outfitter/cli-c8q4f71g.js";
|
|
48
|
-
import {
|
|
49
|
-
formatBytes,
|
|
50
|
-
formatDuration
|
|
51
|
-
} from "../shared/@outfitter/cli-j19a91ck.js";
|
|
129
|
+
} from "../shared/@outfitter/cli-jjemfdta.js";
|
|
52
130
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
131
|
+
BORDERS,
|
|
132
|
+
drawHorizontalLine,
|
|
133
|
+
getBorderCharacters,
|
|
134
|
+
init_borders
|
|
135
|
+
} from "../shared/@outfitter/cli-85fg2vr5.js";
|
|
55
136
|
import {
|
|
56
137
|
ANSI,
|
|
57
138
|
applyColor,
|
|
58
139
|
createTheme,
|
|
59
140
|
createTokens,
|
|
141
|
+
init_colors,
|
|
60
142
|
resolveTokenColorEnabled
|
|
61
|
-
} from "../shared/@outfitter/cli-
|
|
62
|
-
import"../shared/@outfitter/cli-
|
|
63
|
-
import"../shared/@outfitter/cli-
|
|
143
|
+
} from "../shared/@outfitter/cli-9nbyj2bt.js";
|
|
144
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
145
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
146
|
+
|
|
147
|
+
// packages/cli/src/render/index.ts
|
|
148
|
+
init_borders();
|
|
149
|
+
init_box();
|
|
150
|
+
init_colors();
|
|
151
|
+
init_text();
|
|
64
152
|
export {
|
|
65
153
|
wrapText,
|
|
154
|
+
vstackItem,
|
|
155
|
+
vstack,
|
|
66
156
|
unregisterRenderer,
|
|
157
|
+
unbox,
|
|
67
158
|
truncateText,
|
|
68
159
|
treeNodeToRecord,
|
|
69
160
|
stripAnsi,
|
|
70
161
|
startOfDay,
|
|
71
162
|
slugify,
|
|
163
|
+
roundedTheme,
|
|
164
|
+
resolveWidth,
|
|
72
165
|
resolveTokenColorEnabled,
|
|
166
|
+
resolveStateMarker,
|
|
167
|
+
resolveGlyph,
|
|
73
168
|
renderTree,
|
|
74
169
|
renderText,
|
|
75
170
|
renderTable,
|
|
171
|
+
renderSpinner,
|
|
172
|
+
renderSeparator,
|
|
76
173
|
renderProgress,
|
|
77
174
|
renderMarkdown,
|
|
78
175
|
renderList,
|
|
79
176
|
renderJson,
|
|
177
|
+
renderHeading,
|
|
178
|
+
renderBox,
|
|
80
179
|
render,
|
|
81
180
|
registerRenderer,
|
|
82
181
|
pluralize,
|
|
83
182
|
parseDateRange,
|
|
84
183
|
padText,
|
|
184
|
+
normalizePadding,
|
|
185
|
+
normalizeMargin,
|
|
186
|
+
normalizeBorders,
|
|
187
|
+
minimalTheme,
|
|
188
|
+
joinVertical,
|
|
189
|
+
joinHorizontal,
|
|
190
|
+
isUnicodeSupported,
|
|
85
191
|
isResource,
|
|
192
|
+
isRenderable,
|
|
86
193
|
isPlainObject,
|
|
87
194
|
isKeyValue,
|
|
88
195
|
isHierarchy,
|
|
89
196
|
isCollection,
|
|
197
|
+
hstack,
|
|
198
|
+
getTerminalWidth,
|
|
90
199
|
getStringWidth,
|
|
200
|
+
getSpinnerFrame,
|
|
201
|
+
getProgressIndicator,
|
|
202
|
+
getMarker,
|
|
203
|
+
getIndicator,
|
|
204
|
+
getDelimiter,
|
|
205
|
+
getContextTheme,
|
|
206
|
+
getContentWidth,
|
|
207
|
+
getBoxOverhead,
|
|
208
|
+
getBorderCharacters,
|
|
91
209
|
formatRelative,
|
|
92
210
|
formatDuration,
|
|
93
211
|
formatBytes,
|
|
94
212
|
endOfDay,
|
|
213
|
+
drawHorizontalLine,
|
|
214
|
+
defaultTheme,
|
|
215
|
+
createVisualTheme,
|
|
216
|
+
createVStack,
|
|
95
217
|
createTokens,
|
|
218
|
+
createThemedContext,
|
|
96
219
|
createTheme,
|
|
220
|
+
createLayoutContext,
|
|
221
|
+
createHStack,
|
|
222
|
+
createBox,
|
|
97
223
|
clearRenderers,
|
|
224
|
+
boxify,
|
|
225
|
+
boldTheme,
|
|
98
226
|
applyColor,
|
|
227
|
+
TREE_GUIDES,
|
|
228
|
+
SPINNERS,
|
|
229
|
+
INDICATORS,
|
|
230
|
+
DELIMITERS,
|
|
231
|
+
DEFAULT_STACK_THEME,
|
|
232
|
+
BORDERS,
|
|
99
233
|
ANSI_REGEX,
|
|
100
234
|
ANSI
|
|
101
235
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { INDICATORS, IndicatorCategory, IndicatorSet, ProgressStyle, getIndicator, getProgressIndicator, isUnicodeSupported } from "../shared/@outfitter/cli-sx67mmfx";
|
|
2
|
+
export { isUnicodeSupported, getProgressIndicator, getIndicator, ProgressStyle, IndicatorSet, IndicatorCategory, INDICATORS };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
INDICATORS,
|
|
4
|
+
getIndicator,
|
|
5
|
+
getProgressIndicator,
|
|
6
|
+
isUnicodeSupported
|
|
7
|
+
} from "../shared/@outfitter/cli-p1m5dhrs.js";
|
|
8
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
9
|
+
export {
|
|
10
|
+
isUnicodeSupported,
|
|
11
|
+
getProgressIndicator,
|
|
12
|
+
getIndicator,
|
|
13
|
+
INDICATORS
|
|
14
|
+
};
|
package/dist/render/json.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Alignment, HorizontalLayoutOptions, VerticalLayoutOptions, createLayoutContext, getBoxOverhead, getContentWidth, getTerminalWidth, joinHorizontal, joinVertical, resolveWidth } from "../shared/@outfitter/cli-9khk3cbq";
|
|
2
|
+
import "../shared/@outfitter/cli-8xsmsbbd";
|
|
3
|
+
import "../shared/@outfitter/cli-fakncnjp";
|
|
4
|
+
import "../shared/@outfitter/cli-2g8bx1aq";
|
|
5
|
+
export { resolveWidth, joinVertical, joinHorizontal, getTerminalWidth, getContentWidth, getBoxOverhead, createLayoutContext, VerticalLayoutOptions, HorizontalLayoutOptions, Alignment };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
createLayoutContext,
|
|
4
|
+
getBoxOverhead,
|
|
5
|
+
getContentWidth,
|
|
6
|
+
getTerminalWidth,
|
|
7
|
+
joinHorizontal,
|
|
8
|
+
joinVertical,
|
|
9
|
+
resolveWidth
|
|
10
|
+
} from "../shared/@outfitter/cli-671sxkhj.js";
|
|
11
|
+
import"../shared/@outfitter/cli-vp88gxev.js";
|
|
12
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
13
|
+
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
14
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
15
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
16
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
17
|
+
export {
|
|
18
|
+
resolveWidth,
|
|
19
|
+
joinVertical,
|
|
20
|
+
joinHorizontal,
|
|
21
|
+
getTerminalWidth,
|
|
22
|
+
getContentWidth,
|
|
23
|
+
getBoxOverhead,
|
|
24
|
+
createLayoutContext
|
|
25
|
+
};
|
package/dist/render/list.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ListItem, NestedListItem, renderList } from "../shared/@outfitter/cli-
|
|
2
|
-
export { renderList, NestedListItem, ListItem };
|
|
1
|
+
import { ListItem, ListOptions, ListStyle, NestedListItem, renderList } from "../shared/@outfitter/cli-b0tzqgnf";
|
|
2
|
+
export { renderList, NestedListItem, ListStyle, ListOptions, ListItem };
|
package/dist/render/list.js
CHANGED
package/dist/render/markdown.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
renderMarkdown
|
|
4
|
-
} from "../shared/@outfitter/cli-
|
|
5
|
-
import"../shared/@outfitter/cli-
|
|
6
|
-
import"../shared/@outfitter/cli-
|
|
7
|
-
import"../shared/@outfitter/cli-
|
|
4
|
+
} from "../shared/@outfitter/cli-afhjqmg3.js";
|
|
5
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
6
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
7
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
8
8
|
export {
|
|
9
9
|
renderMarkdown
|
|
10
10
|
};
|
package/dist/render/progress.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
renderSeparator
|
|
4
|
+
} from "../shared/@outfitter/cli-p38sfxyk.js";
|
|
5
|
+
import"../shared/@outfitter/cli-671sxkhj.js";
|
|
6
|
+
import"../shared/@outfitter/cli-vp88gxev.js";
|
|
7
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
8
|
+
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
9
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
10
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
11
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
12
|
+
export {
|
|
13
|
+
renderSeparator
|
|
14
|
+
};
|
package/dist/render/shapes.js
CHANGED
|
@@ -10,16 +10,17 @@ import {
|
|
|
10
10
|
render,
|
|
11
11
|
treeNodeToRecord,
|
|
12
12
|
unregisterRenderer
|
|
13
|
-
} from "../shared/@outfitter/cli-
|
|
14
|
-
import"../shared/@outfitter/cli-6xc869x1.js";
|
|
15
|
-
import"../shared/@outfitter/cli-fheaaa6b.js";
|
|
16
|
-
import"../shared/@outfitter/cli-e0ecw3x1.js";
|
|
17
|
-
import"../shared/@outfitter/cli-v9mjsvjh.js";
|
|
13
|
+
} from "../shared/@outfitter/cli-jhcdwvpn.js";
|
|
18
14
|
import"../shared/@outfitter/cli-3hp8qwx3.js";
|
|
19
|
-
import"../shared/@outfitter/cli-
|
|
20
|
-
import"../shared/@outfitter/cli-
|
|
21
|
-
import"../shared/@outfitter/cli-
|
|
22
|
-
import"../shared/@outfitter/cli-
|
|
15
|
+
import"../shared/@outfitter/cli-b5c2k0d7.js";
|
|
16
|
+
import"../shared/@outfitter/cli-xg5y5fhk.js";
|
|
17
|
+
import"../shared/@outfitter/cli-an9j0h80.js";
|
|
18
|
+
import"../shared/@outfitter/cli-afhjqmg3.js";
|
|
19
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
20
|
+
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
21
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
22
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
23
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
23
24
|
export {
|
|
24
25
|
unregisterRenderer,
|
|
25
26
|
treeNodeToRecord,
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BoxifyOptions, DEFAULT_STACK_THEME, DELIMITERS, DelimiterName, DelimiterSet, HStackOptions, ItemState, MarkerName, Renderable, StackBox, StackInput, StackItem, StackTheme, VStackMode, VStackOptions, boxify, createHStack, createVStack, getDelimiter, getMarker, hstack, isRenderable, unbox, vstack, vstackItem } from "../shared/@outfitter/cli-hnpbqmc8";
|
|
2
|
+
import "../shared/@outfitter/cli-3b7ed3rm";
|
|
3
|
+
export { vstackItem, vstack, unbox, isRenderable, hstack, getMarker, getDelimiter, createVStack, createHStack, boxify, VStackOptions, VStackMode, StackTheme, StackItem, StackInput, StackBox, Renderable, MarkerName, ItemState, HStackOptions, DelimiterSet, DelimiterName, DELIMITERS, DEFAULT_STACK_THEME, BoxifyOptions };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_STACK_THEME,
|
|
4
|
+
DELIMITERS,
|
|
5
|
+
boxify,
|
|
6
|
+
createHStack,
|
|
7
|
+
createVStack,
|
|
8
|
+
getDelimiter,
|
|
9
|
+
getMarker,
|
|
10
|
+
hstack,
|
|
11
|
+
isRenderable,
|
|
12
|
+
unbox,
|
|
13
|
+
vstack,
|
|
14
|
+
vstackItem
|
|
15
|
+
} from "../shared/@outfitter/cli-1bghjef6.js";
|
|
16
|
+
import"../shared/@outfitter/cli-b5c2k0d7.js";
|
|
17
|
+
import"../shared/@outfitter/cli-p1m5dhrs.js";
|
|
18
|
+
import"../shared/@outfitter/cli-671sxkhj.js";
|
|
19
|
+
import"../shared/@outfitter/cli-vp88gxev.js";
|
|
20
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
21
|
+
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
22
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
23
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
24
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
25
|
+
export {
|
|
26
|
+
vstackItem,
|
|
27
|
+
vstack,
|
|
28
|
+
unbox,
|
|
29
|
+
isRenderable,
|
|
30
|
+
hstack,
|
|
31
|
+
getMarker,
|
|
32
|
+
getDelimiter,
|
|
33
|
+
createVStack,
|
|
34
|
+
createHStack,
|
|
35
|
+
boxify,
|
|
36
|
+
DELIMITERS,
|
|
37
|
+
DEFAULT_STACK_THEME
|
|
38
|
+
};
|
package/dist/render/table.d.ts
CHANGED
package/dist/render/table.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
renderTable
|
|
4
|
-
} from "../shared/@outfitter/cli-
|
|
5
|
-
import"../shared/@outfitter/cli-
|
|
6
|
-
import"../shared/@outfitter/cli-
|
|
7
|
-
import"../shared/@outfitter/cli-
|
|
8
|
-
import"../shared/@outfitter/cli-
|
|
4
|
+
} from "../shared/@outfitter/cli-an9j0h80.js";
|
|
5
|
+
import"../shared/@outfitter/cli-jjemfdta.js";
|
|
6
|
+
import"../shared/@outfitter/cli-85fg2vr5.js";
|
|
7
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
8
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
9
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
9
10
|
export {
|
|
10
11
|
renderTable
|
|
11
12
|
};
|
package/dist/render/text.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ANSI_REGEX, getStringWidth, padText, pluralize, slugify, stripAnsi, truncateText, wrapText } from "../shared/@outfitter/cli-
|
|
1
|
+
import { ANSI_REGEX, getStringWidth, padText, pluralize, slugify, stripAnsi, truncateText, wrapText } from "../shared/@outfitter/cli-4cb5g831";
|
|
2
2
|
export { wrapText, truncateText, stripAnsi, slugify, pluralize, padText, getStringWidth, ANSI_REGEX };
|
package/dist/render/text.js
CHANGED
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ANSI_REGEX,
|
|
4
4
|
getStringWidth,
|
|
5
|
+
init_text,
|
|
5
6
|
padText,
|
|
6
7
|
pluralize,
|
|
7
8
|
slugify,
|
|
8
9
|
stripAnsi,
|
|
9
10
|
truncateText,
|
|
10
11
|
wrapText
|
|
11
|
-
} from "../shared/@outfitter/cli-
|
|
12
|
-
import"../shared/@outfitter/cli-
|
|
13
|
-
import"../shared/@outfitter/cli-
|
|
14
|
-
import"../shared/@outfitter/cli-
|
|
12
|
+
} from "../shared/@outfitter/cli-jjemfdta.js";
|
|
13
|
+
import"../shared/@outfitter/cli-9nbyj2bt.js";
|
|
14
|
+
import"../shared/@outfitter/cli-d9ad0rqj.js";
|
|
15
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
16
|
+
init_text();
|
|
17
|
+
|
|
15
18
|
export {
|
|
16
19
|
wrapText,
|
|
17
20
|
truncateText,
|
package/dist/render/tree.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { renderTree } from "../shared/@outfitter/cli-
|
|
2
|
-
export { renderTree };
|
|
1
|
+
import { TREE_GUIDES, TreeGuideStyle, TreeOptions, renderTree } from "../shared/@outfitter/cli-3b7ed3rm";
|
|
2
|
+
export { renderTree, TreeOptions, TreeGuideStyle, TREE_GUIDES };
|
package/dist/render/tree.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
TREE_GUIDES,
|
|
3
4
|
renderTree
|
|
4
|
-
} from "../shared/@outfitter/cli-
|
|
5
|
-
import"../shared/@outfitter/cli-
|
|
5
|
+
} from "../shared/@outfitter/cli-b5c2k0d7.js";
|
|
6
|
+
import"../shared/@outfitter/cli-v1tzwxkt.js";
|
|
6
7
|
export {
|
|
7
|
-
renderTree
|
|
8
|
+
renderTree,
|
|
9
|
+
TREE_GUIDES
|
|
8
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
getIndicator,
|
|
4
|
+
isUnicodeSupported
|
|
5
|
+
} from "./cli-p1m5dhrs.js";
|
|
6
|
+
|
|
7
|
+
// packages/cli/src/theme/resolve.ts
|
|
8
|
+
function resolveGlyph(glyph, forceUnicode) {
|
|
9
|
+
const useUnicode = forceUnicode ?? isUnicodeSupported();
|
|
10
|
+
return useUnicode ? glyph.unicode : glyph.fallback;
|
|
11
|
+
}
|
|
12
|
+
function resolveStateMarker(theme, state, forceUnicode) {
|
|
13
|
+
const markerSpec = theme.markers[state] ?? theme.markers.default;
|
|
14
|
+
if (markerSpec.type === "indicator") {
|
|
15
|
+
return getIndicator(markerSpec.category, markerSpec.name, forceUnicode);
|
|
16
|
+
}
|
|
17
|
+
return resolveGlyph(markerSpec.glyph, forceUnicode);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { resolveGlyph, resolveStateMarker };
|