【发布时间】:2013-07-04 17:44:39
【问题描述】:
有没有办法自定义Pry中的帮助系统?
我想要的是显示来自我的custom commands 的描述。现在,当在 REPL 中输入 help 时,会打印所有 Pry 帮助文档。
例如:
当前帮助输出:
Help
help Show a list of commands or information about a specific command
Context
cd Move into a new context (object or scope).
find-method Recursively search for a method within a Class/Module or the current namespace.
ls Show the list of vars and methods in the current scope.
etc...
我想要删除 Pry 帮助列表:
Commands
my-custom-command description
my-custom-command2 description
etc...
【问题讨论】: