1

Pryのヘルプ システムをカスタマイズする方法はありますか?

私が望むのは、カスタム コマンドから説明を表示することです。help現在、REPL に を入力すると、すべての 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...
4

2 に答える 2