Hide runner:looks_like_a_file_path?

This prevents `runner:looks_like_a_file_path?` from showing up in the
output of `bin/rails --help`.

__Before__

  ```console
  $ bin/rails --help
  You must specify a command. The most common commands are:

  ...

  In addition to those commands, there are:

  about                              List versions of all Rails frameworks and...
  ...
  runner
  runner:looks_like_a_file_path?
  secret                             Generate a cryptographically secure secre...
  secrets:edit
  ...
  ```

__After__

  ```console
  $ bin/rails --help
  You must specify a command. The most common commands are:

  ...

  In addition to those commands, there are:

  about                              List versions of all Rails frameworks and...
  ...
  runner
  secret                             Generate a cryptographically secure secre...
  secrets:edit
  ...
  ```
This commit is contained in:
Jonathan Hefner 2023-01-12 15:49:58 -06:00
parent 2b01139dc4
commit d156c47018

@ -66,6 +66,7 @@ def perform(code_or_file = nil, *command_argv)
end
end
private
def looks_like_a_file_path?(code_or_file)
code_or_file.ends_with?(".rb")
end