mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 10:24:07 +00:00
This PR adds `lake shake` as a built-in Lake command, moving the shake functionality from `script/Shake.lean` into the Lake CLI. ## Motivation Per discussion with @Kha and @tydeu, having shake as a top-level Lake command is preferable to `lake exe shake` because: - Avoids the awkwardness of accessing core tools via `lake exe` - Compiles shake into the Lake binary, avoiding lakefile issues - No benefit to lazy compilation on user machines for this tool ## Changes - Move shake logic from `script/Shake.lean` to `src/lake/Lake/CLI/Shake.lean` - Add `lake shake` command dispatch in `Lake/CLI/Main.lean` - Add help text in `Lake/CLI/Help.lean` - Remove the standalone shake executable from `script/lakefile.toml` ## Usage ``` lake shake [OPTIONS] [<MODULE>...] ``` See `lake shake --help` for full documentation. 🤖 Prepared with Claude Code --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Mac Malone <mac@lean-fro.org> Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
6 lines
67 B
TOML
6 lines
67 B
TOML
name = "scripts"
|
|
|
|
[[lean_exe]]
|
|
name = "modulize"
|
|
root = "Modulize"
|