-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathlaravel.ts
122 lines (120 loc) · 2.85 KB
/
laravel.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
const commonOptions: Fig.Option[] = [
{
name: "--format",
description: "The output format (txt, xml, json, or md)",
args: {
suggestions: ["txt", "xml", "json", "md"],
},
},
{
name: "--raw",
description: "To output raw command list",
},
];
const completionSpec: Fig.Spec = {
name: "laravel",
description: "Laravel Installer",
subcommands: [
{
name: "help",
options: commonOptions,
},
{
name: "list",
options: commonOptions,
},
{
name: "new",
description: "Create a new Laravel application",
args: {
name: "name",
},
options: [
{
name: "--dev",
description: 'Installs the latest "development" release',
},
{
name: "--git",
description: "Initialize a Git repository",
},
{
name: "--branch",
description: "The branch that should be created for a new repository",
args: {
name: "BRANCH",
default: "main",
},
},
{
name: "--github",
description: "Create a new repository on GitHub",
args: {
name: "GITHUB",
isOptional: true,
default: "false",
},
},
{
name: "--jet",
description: "Installs the Laravel Jetstream scaffolding",
},
{
name: "--stack",
description: "The Jetstream stack that should be installed",
args: {
name: "STACK",
suggestions: ["livewire", "inertia"],
},
},
{
name: "--teams",
description:
"Indicates whether Jetstream should be scaffolded with team support",
},
{
name: "--prompt-jetstream",
description:
"Issues a prompt to determine if Jetstream should be installed",
},
{
name: ["-f", "--force"],
description: "Forces install even if the directory already exists",
},
],
},
],
options: [
{
name: ["-h", "--help"],
description: "Display the help message",
},
{
name: ["-q", "--quiet"],
description: "Do not output any message",
},
{
name: ["-V", "--version"],
description: "Display this application version",
},
{
name: "--ansi",
description: "Force ANSI output",
},
{
name: "--no-ansi",
description: "Disable ANSI output",
},
{
name: ["-n", "--no-interaction"],
description: "Do not ask any interactive question",
},
{
name: ["-v", "--verbose"],
isRepeatable: 3,
description:
"Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug",
},
],
};
export default completionSpec;