Skip to content

[9.x] This PR improves windows support and adds WSL support for the artisan docs command - #43585

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
timacdonald:open-windows
Aug 8, 2022
Merged

[9.x] This PR improves windows support and adds WSL support for the artisan docs command#43585
taylorotwell merged 1 commit into
laravel:9.xfrom
timacdonald:open-windows

Conversation

@timacdonald

@timacdonald timacdonald commented Aug 8, 2022

Copy link
Copy Markdown
Member

This PR adds WSL support by checking to see if the wslview binary is available on Linux systems (which WSL is). This is a helper binary that allows us to open URLs in the browser from WSL.

It also improves Windows support as start does not seem to be an executable that Symfony executable helper is able to detect.

It seems common to just forget about checking and open URLs with start in Windows. I'm assuming this is because start is a fundamental piece of Windows that "is just available".

You can see a similar approach take in Composer

Test IRL against:

  • MacOS
  • Linux
  • Windows
  • Windows w/ WSL

Thanks @jessarcher and @aschmelyun for testing this on their local machines ❤️

@timacdonald
timacdonald marked this pull request as draft August 8, 2022 04:35
@timacdonald
timacdonald marked this pull request as ready for review August 8, 2022 07:21
@taylorotwell
taylorotwell merged commit 50f5a91 into laravel:9.x Aug 8, 2022
@timacdonald
timacdonald deleted the open-windows branch August 8, 2022 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants