Help and verbosity options in virtual environments #19157
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog: Feature: Help and verbosity options in virtual environments
Docs: TODO
This PR refactors the virtual env scripts generations, adding verbosity options together with a
helpoption to the newer deactivate (and activate) functions and scripts.PowerShell refactor
The original scripts generation code (activate and deactivate) has only been moved to a jinja2 template, but the functionality and the output code remain exactly the same:
develop2generated code and this newer refactor:conanbuild.ps1conanbuildenv-release-armv8.ps1deactivate_conanbuild.ps1deactivate_conanbuildenv-release-armv8.ps1tools.env:deactivation_mode=function
When the new config is enabled, newer files will be created. These scripts remains stable in functionality compared with the current
develop2branch, but with the addition of built-in powershell script description, which enables calling these functions like:conanbuild.ps1conanbuildenv-release-armv8.ps1sh / POSIX refactor
Same as powershell, the sh generation scripts have been refactor into templates, but the original generated code remain the same:
develop2generated code and this newer refactor:conanbuild.shconanbuildenv-release-armv8.shdeactivate_conanbuild.shdeactivate_conanbuildenv-release-armv8.shtools.env:deactivation_mode=function
Same as powershell, when the new config is enabled, it will generate the same scripts as in
develop2but with-h/--helpand-v/--verboseoptions, which can be handy to check what the scripts are actually doing with your environment.conanbuild.shconanbuildenv-release-armv8.sh