foundry-rs / foundry-rs/foundry

feat(`cast`, `anvil`): add CLI flag to read an array of labels from a file

Open
#10,403 6 comments 3 reactions 0 assignees View on GitHub
C-anvil C-cast T-feature T-to-discuss
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
18h 20m
Merged PRs (30d)
510

Description

### Component

Cast, Anvil

### Describe the feature you would like

The labeling feature is awesome, but managing it directly in `foundry.toml` is not the right place when working with a lot of contracts. An option (in `foundry.toml` directly, or via a CLI arg) to set a filepath as somewhere to read labels from, whether JSON formatted, or maybe CSV, would be great!

It would enable using https://github.com/dawsbot/eth-labels easily for example, without having to import it directly in this repo/at build time. It would enable us to generate such a "labels" file for our own use cases.

This might relate to this issue: https://github.com/foundry-rs/foundry/issues/640

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.