You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add documentation for new template variable features
- Document _1, _2, etc. positional args as template variables
- Document _args for numbered list of all positional args
- Document --_varname CLI flags without frontmatter declaration
- Add Auto-Injected Template Variables table to README
- Update CLAUDE.md with new system keys
- Add example files: positional-vars, args-list, optional-flags
-`_subcommand`: Prepend subcommand(s) to CLI args (e.g., `_subcommand: exec`)
100
102
-`_cwd`: Override working directory for inline commands (`` !`cmd` ``)
101
103
104
+
**Note:**`--_varname` CLI flags work without frontmatter declaration. If a `_` prefixed variable is used in the body but not provided, you'll be prompted for it.
105
+
102
106
**All other keys** are passed directly as CLI flags:
The `--_feature_name` and `--_target_dir` flags are consumed by mdflow for template substitution—they won't be passed to the command.
163
163
164
+
**No frontmatter declaration required:** You can pass `--_varname` flags without declaring them in frontmatter. If the variable is used in the body but not provided, you'll be prompted for it:
165
+
166
+
```yaml
167
+
---
168
+
print: true
169
+
---
170
+
{% if _verbose == "yes" %}Detailed analysis:{% endif %}
0 commit comments