ethereum / fe

Emerging smart contract language for the Ethereum blockchain.
https://fe-lang.org
Other
1.61k stars 186 forks source link

Default to project root if no input path specified #962

Closed cburgdorf closed 11 months ago

cburgdorf commented 11 months ago

What was wrong?

Currently fe build always needs to be supplied with an <input-path> which can be annoying when jumping between directories.

The fe build command should instead try to figure out the <input-path> itself if no input path is given. This is already the behavior of the fe test command.

The same is true for fe check.

How was it fixed?

When fe build is given no <input-path>, it now defaults to the project's root directory (based on where a fe.toml is found) or falls back to the current directory if no fe.toml is found.

The same is true for fe check