provisioning/.migration/knowledge/SYNTAX_FIX_CARD.md

38 lines
685 B
Markdown
Raw Normal View History

# Syntax Fix Patterns (Token-Efficient Reference)
## Critical Patterns to Fix
### 1. Function Call Parentheses
```nushell
# BROKEN
$"(get-provisioning-args)? | default "") "
# FIXED
((get-provisioning-args) | default "")
```
### 2. Command Parentheses
```nushell
# BROKEN
^$"(get-provisioning-name))" -mod server
# FIXED
^(get-provisioning-name) -mod server
```
### 3. Missing Function Calls
```nushell
# BROKEN
let ops = $"(get-provisioning-args)? | default "") "
# FIXED
let ops = ((get-provisioning-args) | default "")
```
## Testing Command
```bash
nu --ide-check FILE_PATH
```
## Success Pattern
All function calls must be wrapped in parentheses when used in expressions.