provisioning/.migration/knowledge/SYNTAX_FIX_CARD.md
Jesús Pérez 0a837aed54 feat: add config module and agent setup for migration
- Add config module from backup (loader, accessor, migration)
- Add agent reference cards for token-efficient migration
- Add migration knowledge base and instructions
- Ready to start systematic config-driven migration
2025-09-22 23:36:59 +01:00

38 lines
685 B
Markdown

# 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.