Skip to content

Commit

Permalink
feat: Add pry specs (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
devshun authored Jul 29, 2023
1 parent c01f031 commit 0156c76
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/pry.ts
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;

0 comments on commit 0156c76

Please sign in to comment.