-
-
Notifications
You must be signed in to change notification settings - Fork 1
wip dispatch
Runs a wip.yml interaction explicitly, by name.
wip dispatch NAME [ARGS...]
dispatch is the default command: any first argument wip doesn't recognize as a built-in is routed
here automatically. These are identical:
wip rspec --fail-fast
wip dispatch rspec --fail-fastSo you only reach for dispatch when the automatic routing can't reach your entry — which happens
in exactly one case.
Built-in commands always win. If you declare an interaction whose name matches a built-in, wip <name> runs the built-in:
interaction:
sync:
command: bin/sync-fixtures
build:
type: build
context: .
tag: myapp:devwip sync # → the built-in mirror, not bin/sync-fixtures
wip dispatch sync # → bin/sync-fixturesWhere it can, wip warns rather than silently shadowing:
$ wip sync
wip: commands.sync in wip.yml is shadowed by the built-in `wip sync`; run it with `wip dispatch sync`init, version, doctor, config, build, up, stop, down, exec, run, shell,
logs, sync, dispatch, help.
Prefer renaming your entry (sync-fixtures rather than sync) — dispatch is the escape hatch,
not the intended daily spelling.
build is the deliberate exception: wip build is driven by the build
interaction's context/tag, so that collision is by design rather than a shadowing problem.
$ wip dispatchprints wip's help, the same as wip help.
$ wip dispatch nope
Unknown command: nopeThe entry is resolved from interaction: / commands:, merged on top of the primary container's
values, and run according to its type:
type |
Runs as |
|---|---|
exec (default) |
wip exec into the primary container |
run |
wip run in a fresh --rm container |
build |
wip build |
Extra arguments are appended to the configured command. TTY allocation follows the entry's
interactive: value combined with real-TTY detection — see TTY Allocation.
Under mode: compose, only type: exec is supported:
commands.migrate: type 'run' is not supported in compose mode (use `wslc-compose build`/`up --build` directly)
wip --config other/wip.yml dispatch rspec
wip dispatch rspec --debugSee Global Options.
Introduction
Modes
Configuration
- Configuration Reference
- Config File Discovery
- Dependencies
- Networking
- Interactions
- Restart Policies
- Env Files
- Secret Masking
- Dockerignore
- Shadow Build Context
- Source Sync
- Sync Modes
compose.yml support
- Compose File Support
- Compose Build
- Compose Depends On
- Compose Profiles
- Compose Variable Interpolation
Commands
- CLI Command Reference
- wip init
- wip version
- wip doctor
- wip config
- wip build
- wip up
- wip stop
- wip down
- wip exec
- wip run
- wip shell
- wip logs
- wip sync
- wip dispatch
- Global Options
- Debug Output
- TTY Allocation
Guides
- Guides
- Migrating from dip
- Reusing an Existing compose.yml
- Fixing a Slow Boot
- Continuous Sync
- Auto Restarting Containers
- Multi Arch Images
- Using wip in CI
Troubleshooting
- Troubleshooting & FAQ
- FAQ
- Configuration Errors
- WSLC Not Found
- Registry Authentication
- Architecture Mismatch
- Volume Limit Reached
- rsync Not Found
- Reporting Issues
Comparison
Project