forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ps.ts
150 lines (150 loc) · 4.03 KB
/
ps.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
export const completionSpec: Fig.Spec = {
name: "ps",
description: "report a snapshot of the current processes",
options: [
{ name: ["-A", "-e"], description: "Select all processes." },
{
name: ["-a"],
description: "Select all processes except both session leaders",
args: { name: "getsid" },
},
{
name: ["-d"],
description: "Select all processes except session leaders.",
},
{
name: ["--deselect"],
description:
"Select all processes except those that fulfill the specified conditions",
},
{
name: ["-N"],
description:
"Select all processes except those that fulfill the specified conditions (negates the selection).",
},
{
name: ["--pid"],
description: "Select by process ID.",
args: { name: "pidlist" },
},
{
name: ["--ppid"],
description:
"Select by parent process ID. This selects the processes with a parent process ID in pidlist.",
args: { name: "pidlist" },
},
{
name: ["--sid"],
description: "Select by session ID.",
args: { name: "sesslist" },
},
{
name: ["--tty"],
description: "Select by terminal.",
args: { name: "ttylist" },
},
{
name: ["U"],
description: "Select by effective user ID (EUID) or name.",
args: { name: "userlist" },
},
{
name: ["-U"],
description: "Select by real user ID (RUID) or name.",
args: { name: "userlist" },
},
{
name: ["-u"],
description: "Select by effective user ID (EUID) or name.",
args: { name: "userlist" },
},
{
name: ["--User"],
description: "Select by real user ID (RUID) or name.",
args: { name: "userlist" },
},
{
name: ["--user"],
description: "Select by effective user ID (EUID) or name",
args: { name: "userlist" },
},
{
name: ["-c"],
description: "Show different scheduler information for the -l option",
},
{
name: ["--context"],
description: "Display security context format (for SE Linux).",
},
{ name: ["-f"], description: "Do full-format listing." },
{ name: ["-F"], description: "Extra full format." },
{
name: ["--format", "-o", "o"],
description: ".",
args: { name: "format" },
},
{ name: ["-M", "Z"], description: "(for SE Linux)." },
{ name: ["-y", "-l"], description: "." },
{
name: ["--cols"],
description: "Set screen width",
args: { name: "n" },
},
{
name: ["--columns"],
description: "Set screen width",
args: { name: "n" },
},
{
name: ["--cumulative"],
description:
"Include some dead child process data (as a sum with the parent)",
},
{ name: ["--forest"], description: "ASCII art process tree." },
{ name: ["-H"], description: "Show process hierarchy (forest)." },
{
name: ["--headers"],
description: "Repeat header lines, one per page of output.",
},
{
name: ["-n"],
description: "Set namelist file.",
args: { name: "namelist" },
},
{
name: ["--lines"],
description: "Set screen height.",
args: { name: "n" },
},
{
name: ["--no-headers", "--no-heading"],
description: "Print no header line at all.",
},
{
name: ["--rows"],
description: "Set screen height.",
args: { name: "n" },
},
{
name: ["--sort"],
description: "Specify sorting order.",
args: { name: "spec" },
},
{
name: ["--width"],
description: "set screen width",
args: { name: "n" },
},
{
name: ["-L"],
description: "Show threads, possibly with LWP and NLWP columns.",
},
{
name: ["-T"],
description: "Show threads, possibly with SPID column.",
},
{ name: ["--help"], description: "Print a help message." },
{ name: ["--info"], description: "Print debugging info." },
{ name: ["--version"], description: "Print the procps version." },
],
};