-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; |