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

Enable setting default profile by env variable #996

Merged

Conversation

Johnabell
Copy link
Contributor

It would be useful to be able to set a default profile by env variable. This will help to have a different profile as default when, for example, working in a docker container vs working on the host machine.

This PR add the support for this allowing users to set CARGO_MAKE_DEFAULT_PROFILE so all future invocations of cargo make will use the given profile. If this variable is not set, it will fall back to the current behaviour of using development as the default profile.

@sagiegurari
Copy link
Owner

@Johnabell thanks for the PR i'll review it tomorrow.

Copy link

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ae69384) 92.84% compared to head (38de7c9) 92.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #996      +/-   ##
==========================================
+ Coverage   92.84%   92.92%   +0.07%     
==========================================
  Files         118      118              
  Lines       23827    23755      -72     
==========================================
- Hits        22123    22075      -48     
+ Misses       1704     1680      -24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -2662,6 +2662,10 @@ command = "echo"
args = [ "running in production profile" ]
```

#### Default profile
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you put this in the content.md instead of readme as readme is generated?
also please add an anchor like link above and a link to this anchor in nav.md

@sagiegurari
Copy link
Owner

@Johnabell this is great thanks. just 1 minor comment regarding the documentation going into the wrong file.

@sagiegurari
Copy link
Owner

@Johnabell decided to fix the docs for you... thanks for the PR

@sagiegurari sagiegurari changed the base branch from master to 0.38.5 December 15, 2023 14:32
@sagiegurari sagiegurari merged commit 29c00d8 into sagiegurari:0.38.5 Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants