forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtop.js
47 lines (46 loc) · 1.2 KB
/
top.js
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
var completionSpec = {
name: "top",
description: "display Linux tasks",
options: [
{
name: ["-h", "-v"],
description: "Show library version and usage prompt",
},
{
name: ["-b"],
description: "Starts top in Batch mode",
args: {
name: "operaion",
},
},
{
name: ["-c"],
description: "Starts top with last remembered c state reversed",
args: {
name: "toggle",
},
},
{
name: ["-i"],
description: "Starts top with the last remembered 'i' state reversed. When this toggle is Off, tasks that are idled or zombied will not be displayed.",
args: {
name: "toggle",
},
},
{
name: ["-s"],
description: "Starts top with secure mode forced",
args: {
name: "delay",
},
},
{
name: ["-pid"],
description: "Monitor pids",
args: {
name: "process ids",
variadic: true,
},
},
],
};