-
-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I would like to be able to include certain parts of the code only in development/production environment.
The idea resembles how a C compiler's preprocessor uses #ifdef sections.
I know that by default the env is only taken into consideration at generation time, I would expect to be able to access it in the command itself to define sections that should be generated according to its value.
For example (The syntax can change to fit your taste) :
download_command.sh
# command.env.production
echo "This will only be included in the final script if --env production was given to bashly generate"
echo "This too, until saying otherwise, all code after the above commend is included only in production"
# command.env.development
echo "This will only be included in development"
# command.env
# OR alternatively
# command.env.~
echo "This will be added in any env, which should be of course the default case :)"Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request