fix(packages): join else with } on service_complete Phase 1 chains #148
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/service-complete-else-147"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #147.
Summary
if $core { ... } else { ... }inner chains inservice_completeonto single lines so Nushell's parser accepts them.}andelseon separate lines, which the parser rejects withCommand \else` not found, blocking the entireservice_complete` function from loading.Why this is the right fix
Nushell requires
else/else ifto share a line with the preceding block's closing}. The rest ofpackages.nualready follows this convention —service_install_all(lines 62-68), Phase 2 ofservice_complete(lines 196-219), and the WASM phase (lines 254-260) — so this PR brings Phase 1 in line with the rest of the file rather than introducing a new style.Verification
On
kristof6(Nushell session that originally hit the error):The function now parses cleanly. Functional behavior is unchanged — the if/else semantics across the four branches (
$core×$reset/$update/neither) are identical.Test plan
service_completeparses (loads viause)service_complete --update --reset --wasmon a clean kristof6 (deferred — separate from this parser fix)elsewith}on service_complete Phase 1 chains (#147)elseon new line after}in packages.nu #147