-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathtailcall.ts
62 lines (61 loc) · 1.46 KB
/
tailcall.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
const completionSpec: Fig.Spec = {
name: "tailcall",
description:
"TailCall CLI for managing and optimizing GraphQL configurations",
subcommands: [
{
name: "check",
description: "Validate a composition spec",
args: {
name: "FILE_PATHS",
template: "filepaths",
isVariadic: true,
},
options: [
{
name: "--n-plus-one-queries",
description: "Detect N+1 issues",
isPersistent: true,
},
{
name: "--schema",
description: "Display the schema of the composition spec",
isPersistent: true,
},
{
name: "--format",
description: "Change the format of the input file",
args: {
suggestions: ["gql", "graphql", "yml", "yaml", "json"],
},
},
],
},
{
name: "start",
description: "Launch the GraphQL Server for the specific configuration",
args: {
name: "PATHS",
template: ["filepaths", "folders"],
isVariadic: true,
},
},
{
name: "init",
description: "Bootstrap a new TailCall project",
args: {
name: "FILE_PATH",
template: "folders",
},
},
{
name: "gen",
description: "Generate GraphQL configurations from various sources",
args: {
name: "CONFIG_FILE",
template: "filepaths",
},
},
],
};
export default completionSpec;