You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports[`cli completion tests for citty > cli option completion tests > should complete option for partial input '{partial: '--p', expected: '--port'}' 1`] =`
4
+
"--port Specify port
5
+
"
6
+
`;
7
+
8
+
exports[`cli completion tests for citty > cli option exclusion tests > should not suggest already specified option '{specified: '--config', shouldNotContain: '--config'}' 1`] =`
9
+
"--mode Set env mode
10
+
--logLevel info | warn | error | silent
11
+
:4
12
+
"
13
+
`;
14
+
15
+
exports[`cli completion tests for citty > cli option exclusion tests > should not suggest already specified option '{specified: '--port', shouldNotContain: '--port'}' 1`] =`
16
+
"--mode Set env mode
17
+
--logLevel info | warn | error | silent
18
+
:4
19
+
"
20
+
`;
21
+
22
+
exports[`cli completion tests for citty > cli option value handling > should handle conflicting options appropriately 1`] =`
23
+
"--mode Set env mode
24
+
--logLevel info | warn | error | silent
25
+
:4
26
+
"
27
+
`;
28
+
29
+
exports[`cli completion tests for citty > cli option value handling > should handle unknown options with no completions 1`] =`""`;
30
+
31
+
exports[`cli completion tests for citty > cli option value handling > should resolve config option values correctly 1`] =`
32
+
"vite.config.js
33
+
vite.config.ts
34
+
"
35
+
`;
36
+
37
+
exports[`cli completion tests for citty > cli option value handling > should resolve port value correctly 1`] =`
38
+
"3000 Development server port
39
+
"
40
+
`;
41
+
42
+
exports[`cli completion tests for citty > edge case completions for end with space > should keep suggesting the --port option if user typed partial but didn't end with space 1`] =`
43
+
"--port Specify port
44
+
"
45
+
`;
46
+
47
+
exports[`cli completion tests for citty > edge case completions for end with space > should suggest port values if user ends with space after \`--port\` 1`] =`
48
+
"3000 Development server port
49
+
8080 Alternative port
50
+
"
51
+
`;
52
+
53
+
exports[`cli completion tests for citty > edge case completions for end with space > should suggest port values if user typed \`--port=\` and hasn't typed a space or value yet 1`] =`
54
+
"3000 Development server port
55
+
8080 Alternative port
56
+
:4
57
+
"
58
+
`;
59
+
60
+
exports[`cli completion tests for citty > positional argument completions > should complete multiple positional arguments when ending with space (vite src/ ./) 1`] =`
61
+
"./
62
+
src/
63
+
"
64
+
`;
65
+
66
+
exports[`cli completion tests for citty > positional argument completions > should complete single positional argument when ending with space (vite src/) 1`] =`
67
+
"./
68
+
"
69
+
`;
70
+
71
+
exports[`cli completion tests for citty > should complete cli options 1`] =`
0 commit comments