-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathpublish.ts
45 lines (45 loc) · 1.03 KB
/
publish.ts
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
const completionSpec: Fig.Spec = {
name: "publish",
description: "",
subcommands: [
{
name: "new",
description: "Set up a new website in the current folder",
},
{
name: "run",
description:
"Generate and run a localhost server on default port 8000 for the website in the current folder",
parserDirectives: {
flagsArePosixNoncompliant: true,
},
options: [
{
name: ["-p", "--port"],
description: "Customize the port",
args: {
name: "port",
default: "8000",
},
},
],
},
{
name: "deploy",
description: "Generate and deploy the website in the current folder",
},
{
name: "generate",
description: "Generate the website in the current folder",
},
],
options: [
{
name: ["--help", "-h"],
description: "Show help for publish",
},
],
// Only uncomment if publish takes an argument
// args: {}
};
export default completionSpec;