core icon indicating copy to clipboard operation
core copied to clipboard

Interactive shell fails without a command

Open flavioheleno opened this issue 1 year ago • 0 comments

Describe the bug According to the docs, one can run php vendor/bin/roach <url> to start Roach's Interactive Shell, but it actually requires a command (roach:shell) to be inserted just before the <url> argument (ie. php vendor/bin/roach roach:shell <url>).

Reproduction

$ php vendor/bin/roach https://roach-php.dev/docs/repl

                                                           
  There are no commands defined in the "https" namespace.  
                                                           

Expected behavior

$ php vendor/bin/roach https://roach-php.dev/docs/repl

Available variables:
    $response:      <200 'https://roach-php.dev/docs/repl'>
    $html:          Raw HTML contents of response
Commands:
    fetch <url>     Fetch URL and update the $response and $html objects

Psy Shell v0.12.4 (PHP 8.3.11 — cli) by Justin Hileman

Package versions (please complete the following information):

  • core: v3.2.0
  • php: 8.3.11

flavioheleno avatar Sep 08 '24 03:09 flavioheleno