Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive shell fails without a command #260

Open
flavioheleno opened this issue Sep 8, 2024 · 0 comments
Open

Interactive shell fails without a command #260

flavioheleno opened this issue Sep 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@flavioheleno
Copy link

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 flavioheleno added the bug Something isn't working label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants