-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathpry.ts
58 lines (57 loc) · 1.83 KB
/
pry.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
const completionSpec: Fig.Spec = {
name: "pry",
description: "Interactive Ruby",
options: [
{
name: ["-e", "--exec"],
description:
"A line of code to execute in context before the session starts",
args: { name: "code" },
},
{ name: "--no-pager", description: "Disable pager for long output" },
{ name: "--no-history", description: "Disable history loading" },
{
name: "--no-color",
description: "Disable syntax highlighting for session",
},
{ name: "-f", description: "Suppress loading of pryrc" },
{
name: ["-s", "--select-plugin"],
description: "Only load specified plugin (and no others)",
args: { name: "plugin" },
},
{
name: ["-d", "--disable-plugin"],
description: "Disable a specific plugin",
args: { name: "plugin" },
},
{ name: "--no-plugins", description: "Suppress loading of plugins" },
{ name: "--plugins", description: "List installed plugins" },
{ name: "--simple-prompt", description: "Enable simple prompt mode" },
{ name: "--noprompt", description: "No prompt mode" },
{
name: ["-r", "--require"],
description: "`require` a Ruby script at startup",
args: { name: "script" },
},
{
name: "-I",
description: "Add a path to the $LOAD_PATH",
args: { name: "path" },
},
{
name: "--gem",
description: "Shorthand for -I./lib -rgemname",
args: { name: "gemname" },
},
{ name: ["-v", "--version"], description: "Display the Pry version" },
{
name: ["-c", "--context"],
description:
"Start the session in the specified context. Equivalent to `context.pry` in a session",
args: { name: "context" },
},
{ name: ["-h", "--help"], description: "Display this help message" },
],
};
export default completionSpec;