Skip to content

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

Open
@rauschma

Description

@rauschma

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"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions