forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsudo.ts
32 lines (32 loc) · 793 Bytes
/
sudo.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
export const completion: Fig.Spec = {
name: "sudo",
description: "execute a command as the superuser or another user",
options: [
{
name: ["-g", "--group"],
description: "run command as the specified group name or ID",
args: {
name: "group",
description: "group name or ID",
},
},
{
name: ["-h", "--help"],
description: "display help message and exit",
},
{
name: ["-u", "--user"],
description: "run command as specified user name or ID",
args: {
name: "user",
description: "user name or ID",
},
},
],
// Only uncomment if sudo takes an argument
args: {
name: "command",
description: "command to run with elevated permissions",
isCommand: true,
},
};