Utility functions for finding all .lean files or modules in a project. #
TODO:
getLeanLibs contains a hard-coded choice of which dependencies should be built and which ones
should not. Could this be made more structural and robust, possibly with extra Lake support?
getAllFiles git ml takes all .lean files in the directory ml
(recursing into sub-directories) and returns the Array of Strings
#[file₁, ..., fileₙ]
of all their file names. These are not sorted in general.
The input git is a Boolean flag:
truemeans that the command usesgit ls-filesto find the relevant files;falsemeans that the command recursively scans all dirs searching for.leanfiles.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Like getAllFiles, but return an array of module names instead,
i.e. names of the form Mathlib/Algebra/Algebra/Basic.lean.
In addition, these names are sorted in a platform-independent order.
Equations
- One or more equations did not get rendered due to their size.