Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret committed May 23, 2024
1 parent 4ab7df5 commit a051f01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,9 @@ fn set_exposed_command(path: &Path, command_name: &str, indicator: &Regex) {
let command_source = fs::read_to_string(command_path).unwrap();
if indicator.is_match(&command_source) {
let variable = format!("PYAPP_EXPOSE_{}", command_name.to_uppercase());
if is_enabled(&variable) || (!is_explicitly_disabled(&variable) && is_enabled("PYAPP_EXPOSE_ALL_COMMANDS")) {
if is_enabled(&variable)
|| (!is_explicitly_disabled(&variable) && is_enabled("PYAPP_EXPOSE_ALL_COMMANDS"))
{
set_runtime_variable(&variable, "1");
} else {
set_runtime_variable(&variable, "0");
Expand Down

0 comments on commit a051f01

Please sign in to comment.