fix: resolve all syntax errors in provisioning modules
Fixed 29 syntax errors across 4 modules: - servers/ (6 files, 13 errors): Fixed parentheses in PROVISIONING_ARGS expressions - taskservs/ (4 files, 6 errors): Fixed parentheses in string interpolation - main_provisioning/ (3 files, 3 errors): Fixed environment variable access - lib_provisioning/utils/ (2 files, 2 errors): Fixed standalone env access Pattern fixed: - $"($env.PROVISIONING_ARGS? | default "") " → $"(($env.PROVISIONING_ARGS? | default "")) " - $env.PROVISIONING_ARGS? | default "" → ($env.PROVISIONING_ARGS? | default "") All modules now have valid Nushell syntax for proper parsing.
This commit is contained in:
parent
1743dc82c2
commit
37ee6486d5
17 changed files with 62 additions and 24 deletions
|
|
@ -6,7 +6,7 @@ export def parse_help_command [
|
|||
--end
|
||||
] {
|
||||
#use utils/interface.nu end_run
|
||||
let args = $env.PROVISIONING_ARGS? | default ""
|
||||
let args = ($env.PROVISIONING_ARGS? | default "")
|
||||
let has_help = if ($args | str contains "help") or ($args |str ends-with " h") {
|
||||
true
|
||||
} else if $name != null and $name == "help" or $name == "h" {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export def provisioning_init [
|
|||
let cmd_line: list<string> = if ($args| length) == 0 {
|
||||
$args | str join " "
|
||||
} else {
|
||||
$env.PROVISIONING_ARGS? | default ""
|
||||
($env.PROVISIONING_ARGS? | default "")
|
||||
}
|
||||
let cmd_args: list<string> = ($cmd_line | str replace "--helpinfo" "" |
|
||||
str replace "-h" "" | str replace $module "" | str trim | split row " "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue