foundry-rs / foundry-rs/foundry
feat(extensions): add `forge run` command
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 16h 38m
- Merged PRs (30d)
- 511
Description
### Component
Forge
### Describe the feature you would like
Add `forge run`, similar to how a Hardhat project can have scripts in `package.json` and be run with `npm run script`.
```
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
[actions]
build = "bash actions/build.sh"
```
This would enable pre-compilation hooks, and other workflows.
### Additional context
_No response_
Contributor guide
Research direction
No files or tests are named. Start by tracing existing Forge CLI commands and configuration handling, then compare how command actions are defined and invoked. Done means a documented `forge run` workflow supports the proposed `[actions]` configuration and the stated pre-compilation and project-script use cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100