foundry-rs / foundry-rs/foundry

feat(extensions): add `forge run` command

Open
#8,354 1 comment 0 reactions 0 assignees View on GitHub
A-config A-extensions T-feature T-post-V1 T-to-discuss
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.