-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathleaf.ts
125 lines (124 loc) · 2.92 KB
/
leaf.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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
const completionSpec: Fig.Spec = {
name: "leaf",
description: "Create and interact with your leaf projects",
options: [
{
name: ["-h", "--help"],
description:
"Display help for the given command. When no command is given display help for the list command",
},
{
name: ["-q", "--quiet"],
description: "Do not output any message",
},
{
name: ["-V", "--version"],
description: "Display this application version",
},
{
name: "--ansi",
description: "Force ANSI output",
exclusiveOn: ["--no-ansi"],
},
{
name: "--no-ansi",
description: "Disable ANSI output",
exclusiveOn: ["--ansi"],
},
{
name: ["-n", "--no-interaction"],
description: "Do not ask any interactive question",
},
{
name: ["-v", "--verbose"],
description:
"Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
isRepeatable: 3,
},
],
subcommands: [
{
name: "completion",
description: "Dump the shell completion script",
},
{
name: "create",
description: "[init] Create a new Leaf PHP project",
args: {
name: "project name",
description: "Name of the project",
},
},
{
name: "deploy",
description: "[publish] Deploy your leaf project",
},
{
name: "help",
description: "Display help for a command",
},
{
name: "install",
description: "Add a new package to your leaf app",
args: {
name: "package name",
description: "Name of the package",
},
},
{
name: "interact",
description: "Interact with your application",
},
{
name: "list",
description: "List commands",
},
{
name: "run",
description: "Run a script in your composer.json",
args: {
name: "command name",
description: "Name of the command",
},
},
{
name: "serve",
description: "Run your Leaf app",
options: [
{
name: "--port",
description: "The port number to run the server on",
args: {
name: "port number",
description: "The port number to run the server on",
},
},
{
name: "--watch",
description: "Watch for changes and restart the server",
},
],
},
{
name: "test",
description: "Test your leaf application through leaf alchemy",
},
{
name: "test:setup",
description: "Add tests to your application",
},
{
name: "uninstall",
description: "Uninstall a package",
args: {
name: "package name",
description: "Name of the package",
},
},
{
name: "update",
description: "Update leaf cli to the latest version",
},
],
};
export default completionSpec;