forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp.server.ts
More file actions
33 lines (31 loc) · 694 Bytes
/
http.server.ts
File metadata and controls
33 lines (31 loc) · 694 Bytes
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
const completionSpec: Fig.Spec = {
name: "http.server",
description: "",
options: [
{
name: ["-d", "--directory"],
description: "Choose the directory to initiate the server from",
args: {
template: "folders",
},
},
{
name: ["-b", "--bind"],
description: "Bind to a specific IP address",
args: {
name: "IP Address",
description: "e.g. 127.0.0.1",
},
},
{
name: "--cgi",
description: "Enable the CGIHTTPRequestHandler",
},
],
// Only uncomment if http.server takes an argument
args: {
name: "port",
description: "port number",
},
};
export default completionSpec;