forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-next-app.ts
36 lines (34 loc) · 1.22 KB
/
create-next-app.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
// Autogenerated by https://github.com/fedeci/commander-to-fig
const completionSpec: Fig.Spec = {
name: "create-next-app",
icon: "https://nextjs.org/static/favicon/favicon-16x16.png",
options: [
{
name: ["--ts", "--typescript"],
description: "Initialize as a TypeScript project",
},
{
name: "--use-npm",
description: "Explicitly tell the CLI to bootstrap the app using npm",
},
{
name: ["-e", "--example"],
description:
"An example to bootstrap the app with. You can use an example name from the official Next.js repo or a GitHub URL. The URL can use any branch and/or subdirectory",
args: { name: "name|github-url" },
},
{
name: "--example-path",
description:
"In a rare case, your GitHub URL might contain a branch name with a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar). In this case, you must specify the path to the example separately: --example-path foo/bar",
args: { name: "path-to-example" },
},
{
name: ["-h", "--help"],
description: "Display help for command",
priority: 49,
},
],
args: { name: "project-directory", template: "folders" },
};
export default completionSpec;