Expose some topgrade
-related environment variables when running custom step commands
#1013
Labels
C-feature request
New feature request
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
orTOPGRADE_CLEANUP=1
when running with-y
/--yes
or-c
/--cleanup
, so we can check the flags with a singleif
in shell scripts.The text was updated successfully, but these errors were encountered: