Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(forge): allow specifying profile through --profile #5479

Open
klkvr opened this issue Jul 26, 2023 · 4 comments · May be fixed by #9427
Open

feat(forge): allow specifying profile through --profile #5479

klkvr opened this issue Jul 26, 2023 · 4 comments · May be fixed by #9427
Labels
A-config Area: config C-forge Command: forge first issue A good way to start contributing P-low Priority: low T-feature Type: feature
Milestone

Comments

@klkvr
Copy link
Member

klkvr commented Jul 26, 2023

Component

Forge

Describe the feature you would like

Allow specifying profile via forge --profile profile_name

Right now profiles are useful for dividing different compiler settings for different needs. Sometimes development process may require frequent switching between profiles, and it's not very convinient to edit .env every time. Also, passing profile through command-line arg would allow always keeping it in focus and will help to not forget switch profile when needed

Additional context

No response

@klkvr klkvr added the T-feature Type: feature label Jul 26, 2023
@gakonst gakonst added this to Foundry Jul 26, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Jul 26, 2023
@ermolushka
Copy link

Can try to work on it if needed :)

@emo-eth
Copy link
Contributor

emo-eth commented Jul 28, 2023

Slightly more annoying than a cli flag, but in the meantime, you can specify a profile with an inline bash variable, eg:

FOUNDRY_PROFILE=debug forge test

@zerosnacks zerosnacks added first issue A good way to start contributing C-forge Command: forge labels Jul 3, 2024
@zerosnacks zerosnacks self-assigned this Jul 3, 2024
@zerosnacks zerosnacks added the P-normal Priority: normal label Jul 3, 2024
@zerosnacks zerosnacks removed their assignment Jul 3, 2024
@zerosnacks zerosnacks changed the title feature request: allow specifying profile through command-line argument feature request: allow specifying profile through command-line argument (--profile) Jul 4, 2024
@zerosnacks
Copy link
Member

zerosnacks commented Jul 4, 2024

Related request (duplicate): #7859

@zerosnacks zerosnacks changed the title feature request: allow specifying profile through command-line argument (--profile) feat(forge): allow specifying profile through command-line argument (--profile) Jul 4, 2024
@zerosnacks zerosnacks changed the title feat(forge): allow specifying profile through command-line argument (--profile) feat(forge): allow specifying profile through --profile Jul 4, 2024
@zerosnacks
Copy link
Member

zerosnacks commented Jul 4, 2024

Related requests from #6186

  • Implement an --all-profiles command-line flag for executing operations across all profiles.
  • Add ability to list all the profiles available in foundry.toml
  • Enable the use of multiple profiles through a new environment variable, such as FOUNDRY_PROFILES="a,b,c" / enable passing multiple profiles to --profile="a,b,c"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-config Area: config C-forge Command: forge first issue A good way to start contributing P-low Priority: low T-feature Type: feature
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants