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

Single command for “all non-Windows operating systems”? #32

Open
rauschma opened this issue Mar 14, 2024 · 0 comments
Open

Single command for “all non-Windows operating systems”? #32

rauschma opened this issue Mar 14, 2024 · 0 comments

Comments

@rauschma
Copy link

Some commands work the same on all Unixes and only Windows is different. How do I specify such commands via cross-os?

I can see two options – both would be useful.

Option 1: "*" works the same as default in JavaScript’s switch statement:

"cross-os": {
  "chmodux": {
    "win32": "",
    "*": "chmod u+x main.js"
  }
}

Option2: Allow multiple comma-separated values:

"cross-os": {
  "chmodux": {
    "win32": "",
    "darwin,freebsd,linux,sunos": "chmod u+x main.js"
  }
}
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

No branches or pull requests

1 participant