devcontainers / devcontainers/spec
Allow cross-platform/per system initializeCommand definition
Open
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 496
- PR merge metrics
- No merged PRs in 30d
Description
Not sure if it's the most proper repo to report this (if not, please redirect), but would be nice if there was a way to define `initializeCommand` per system in any way, so that the setup is truly cross-system. For example:
```
"initializeCommand": {
"windows": "rd /s /q somedir",
"linux": "rm -rf somedir",
"macos": "..."
}
```
Use case example: https://stackoverflow.com/questions/77199011/how-to-create-a-cross-platform-initializecommand-for-visual-studio-codes-dev-co (copying proper .env file before container launch).
Contributor guide
Assessment
This issue has not been assessed yet.