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

Expose some topgrade-related environment variables when running custom step commands #1013

Open
Jisu-Woniu opened this issue Jan 2, 2025 · 1 comment
Labels
C-feature request New feature request

Comments

@Jisu-Woniu
Copy link

I want to suggest some general feature

The built-in steps of topgrade allow for different behaviors when running with -y or -c args, but custom commands cannot handle this without checking for the parent process.

I suggest topgrade expose some environment variables like TOPGRADE_YES=1 or TOPGRADE_CLEANUP=1 when running with -y/--yes or -c/--cleanup, so we can check the flags with a single if in shell scripts.

@Jisu-Woniu Jisu-Woniu added the C-feature request New feature request label Jan 2, 2025
@Jisu-Woniu
Copy link
Author

Also, -n/--dry-run can be exposed as TOPGRADE_DRY_RUN=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature request New feature request
Projects
None yet
Development

No branches or pull requests

1 participant