summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-01-21 16:11:14 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-01-21 17:24:15 -0800
commit68f158b63c33aa7312ba4b715f6b18527453b761 (patch)
tree1c23c4bb429742b8c3d68a9c48bc8c54a3fa4a97 /readme.md
parente7acdd81f23b4f0f41e5000e9e173ded9c6c0548 (diff)
downloadmill-68f158b63c33aa7312ba4b715f6b18527453b761.tar.gz
mill-68f158b63c33aa7312ba4b715f6b18527453b761.tar.bz2
mill-68f158b63c33aa7312ba4b715f6b18527453b761.zip
Implement basic wildcard task running via e.g. `mill _.compile`
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md20
1 files changed, 18 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index f8ee9a21..b1ef0ff8 100644
--- a/readme.md
+++ b/readme.md
@@ -126,14 +126,30 @@ mill --show --all {core,scalalib}.{scalaVersion,scalaBinaryVersion}
will run `scalaVersion` and `scalaBinaryVersion` targets in both `core` and `scalalib` modules.
* Run targets in different cross build modules
+
```bash
mill --all bridges[{2.11.11,2.12.4}].publish -- --credentials foo --gpgPassphrase bar
```
will run `publish` command in both `brides[2.11.11]` and `bridges[2.12.4]` modules
-**Note**: When you run multiple targets with `--all` flag, they are not guaranteed to run in that exact order.
-Mill will build task evaluation graph and run targets in correct order.
+You can also use the `_` wildcard and `__` recursive-wildcard to run groups of
+tasks:
+
+```bash
+# Run the `test` command of all top-level modules
+mill --all _.test
+
+# Run the `test` command of all modules, top-level or nested
+mill --all __.test
+
+# Run `compile` in every cross-module of `bridges`
+mill --all bridges[_].compile
+```
+
+**Note**: When you run multiple targets with `--all` flag, they are not
+guaranteed to run in that exact order. Mill will build task evaluation graph and
+run targets in correct order.
### REPL