mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
99b26ce49e8071d541692eb52a86731f6addd28a
lake shake command (#11921)
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>
This is the repository for Lean 4.
About
- Quickstart
- Homepage
- Theorem Proving Tutorial
- Functional Programming in Lean
- Documentation Overview
- Language Reference
- Release notes starting at v4.0.0-m3
- Examples
- External Contribution Guidelines
Installation
See Install Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.
Languages
Lean
94.3%
C++
4.1%
Python
0.6%
Shell
0.4%
CMake
0.3%