-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathnginx.ts
99 lines (97 loc) · 2.52 KB
/
nginx.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
const completionSpec: Fig.Spec = {
name: "nginx",
description:
"Nginx (pronounced ``engine x'') is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server. It is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption",
args: {
isVariadic: true,
},
options: [
{
name: "-c",
description: "Use an alternative configuration file",
args: {
name: "file",
template: "filepaths",
},
},
{
name: "-e",
description:
"Use an alternative error log file. Special value stderr indicates that the standard error output should be used",
args: {
name: "file",
suggestions: ["stderr"],
},
},
{
name: "-g",
description: "Set global configuration directives",
args: {
name: "directives",
description:
"For all directives visit https://nginx.org/en/docs/dirindex.html",
},
},
{
name: "-p",
description: "Set the prefix path. The default value is %%PREFIX%%",
args: {
name: "prefix",
},
},
{
name: "-q",
description: "Suppress non-error messages during configuration testing",
},
{
name: "-T",
description:
"Same as -t, but additionally dump configuration files to standard output",
},
{
name: "-t",
description:
"Do not run, just test the configuration file. nginx checks the configuration file syntax and then tries to open files referenced in the configuration file",
},
{
name: "-V",
description:
"Print the nginx version, compiler version, and configure script parameters",
},
{
name: "-v",
description: "Print the nginx version",
},
{
name: ["-?", "-h"],
description: "Print help",
},
{
name: "-s",
description:
"Send a signal to the master process. The argument signal can be one of: stop, quit, reopen, reload",
args: {
name: "signal",
suggestions: [
{
name: "stop",
description: "Sends SIGTERM",
},
{
name: "quit",
description: "Sends SIGQUIT",
},
{
name: "reopen",
description: "Sends SIGUSR1",
},
{
name: "reload",
description: "Sends SIGHUP",
},
],
},
},
],
};
export default completionSpec;