-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Enhancement: Allow script configuration for a specific OS environment/type #484
Comments
It might be worth being able to define a fallback or graceful error message, while we're thinking about cross-platform concerns. For example, both PowerShell and Python are available on Linux, macOS, and Windows, but not on all three by default. I definitely like this though, extremely useful! |
@michaeltlombardi cross-platform is indeed difficult to know what is available on the user's device. The fallback would be tricky. For instance, if the above PowerShell fails, the fallback could be Bash, but it might fail again. Although, it would already be better to check the two options than count on one. I will check if there is an easy way to validate if the |
The easiest way might be to rummage in the |
Currently, the scripts are defined for all OS types. Meaning if you create a bash script, and you would use it for Windows and macOS, it might fail.
A better solution would be the ability to specify scripts per OS type so that you can define a PowerShell script for Windows and a bash script for macOS.
The current script configuration
Proposed change:
By adding the
environments
property with options forwindows
,macos
, andlinux
, it would allow you to override the default script for a specific environment.The text was updated successfully, but these errors were encountered: