You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm perusing the Cake code looking for a way to change the default log verbosity in an ambient way - via an environment variable. I know there are ways to do this with shell aliases but I was curious if I could push this into Cake so that naked dotnet cake uses it.
Currently the log verbosity is set very early on via the command-line options:
I don't see a clean way to do this. Does anyone have any ideas?
(I did have one possibly crazy idea: support a convention for environment variable names as options, overridden by command-line options, similar to the way .NET Core with multiple configuration sources work; this could even be pushed to Spectre.Console/Cli, which now handles the Cake CLI.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm perusing the Cake code looking for a way to change the default log verbosity in an ambient way - via an environment variable. I know there are ways to do this with shell aliases but I was curious if I could push this into Cake so that naked
dotnet cake
uses it.Currently the log verbosity is set very early on via the command-line options:
I don't see a clean way to do this. Does anyone have any ideas?
(I did have one possibly crazy idea: support a convention for environment variable names as options, overridden by command-line options, similar to the way .NET Core with multiple configuration sources work; this could even be pushed to Spectre.Console/Cli, which now handles the Cake CLI.)
Beta Was this translation helpful? Give feedback.
All reactions