Multiple files as entry point #81
Labels
architecture
type checking and compiler related general structuring
cli
Command line interface
good-first-issue
PRs welcome 🙏
Update: after #102 have added multiple entry points to the checker. However it is not fully wired up to Ezno's CLI with:
ezno/src/cli.rs
Lines 170 to 172 in 1aa77e2
The next part (that you can contribute to):
Vec<PathBuf>
from a input path.check --watch
isn't currently implemented, it would be good if this addition can work with a watch mode in the futureCurrently there is only one entry path. OP wants to check all files in the directory. Note each entry point also type checks its imports, so this isn't necessary for checking imports and exports.
Rather than running
entry_points.for_each(|path| check_project(path, ...))
this needs to be built into the internalModuleData
. So it should be callable ascheck_project(vec![...])
.Things to think about
Vec<PathBuf>
from the glob passed to the CLIDiscussed in #80
Originally posted by o-az November 11, 2023
How can I run
oxidation-compiler
to typecheck multiple files by passing a glob string / directory path?Works:
None of these commands check all files:
The text was updated successfully, but these errors were encountered: