/
cli.test.ts.snap
79 lines (46 loc) · 3 KB
/
cli.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Vitest Snapshot v1
exports[`utilities/cli > render help text 1`] = `
"
[1m[36mserve[39m[22m - Static file serving and directory listing
[1mUSAGE[22m
[1m$[22m [36mserve[39m --help
[1m$[22m [36mserve[39m --version
[1m$[22m [36mserve[39m folder_name
[1m$[22m [36mserve[39m [-l [4mlisten_uri[24m [-l ...]] [[4mdirectory[24m]
By default, [36mserve[39m will listen on [1m0.0.0.0:3000[22m and serve the
current working directory on that address.
Specifying a single [1m--listen[22m argument will overwrite the default, not supplement it.
[1mOPTIONS[22m
--help Shows this help message
-v, --version Displays the current version of serve
-l, --listen [4mlisten_uri[24m Specify a URI endpoint on which to listen (see below) -
more than one may be specified to listen in multiple places
-p Specify custom port
-s, --single Rewrite all not-found requests to \`index.html\`
-d, --debug Show debugging information
-c, --config Specify custom path to \`serve.json\`
-L, --no-request-logging Do not log any request information to the console.
-C, --cors Enable CORS, sets \`Access-Control-Allow-Origin\` to \`*\`
-n, --no-clipboard Do not copy the local address to the clipboard
-u, --no-compression Do not compress files
--no-etag Send \`Last-Modified\` header instead of \`ETag\`
-S, --symlinks Resolve symlinks instead of showing 404 errors
--ssl-cert Optional path to an SSL/TLS certificate to serve with HTTPS
[90mSupported formats: PEM (default) and PKCS12 (PFX)[39m
--ssl-key Optional path to the SSL/TLS certificate's private key
[90mApplicable only for PEM certificates[39m
--ssl-pass Optional path to the SSL/TLS certificate's passphrase
--no-port-switching Do not open a port other than the one specified when it's taken.
[1mENDPOINTS[22m
Listen endpoints (specified by the [1m--listen[22m or [1m-l[22m options above) instruct [36mserve[39m
to listen on one or more interfaces/ports, UNIX domain sockets, or Windows named pipes.
For TCP ports on hostname \\"localhost\\":
[1m$[22m [36mserve[39m -l [4m1234[24m
For TCP (traditional host/port) endpoints:
[1m$[22m [36mserve[39m -l tcp://[4mhostname[24m:[4m1234[24m
For UNIX domain socket endpoints:
[1m$[22m [36mserve[39m -l unix:[4m/path/to/socket.sock[24m
For Windows named pipe endpoints:
[1m$[22m [36mserve[39m -l pipe:\\\\\\\\.\\\\pipe\\\\[4mPipeName[24m
"
`;