Usage#
nux validate [name ...]Description#
Validates project configuration files and reports errors. Each config is printed with [ok] or [error].
- With no arguments: validates all project configs under
~/.config/nux/projects/. - With one or more targets: validates each expanded project. Targets support glob patterns (
+),@groupexpansion, and multiple space-separated names (same rules asnux/nux stop).
What gets checked#
- Every project must have at least one window with at least one pane.
- Every window must have a
name. - Every window must have at least one pane.
layoutvalues must be a recognized tmux layout name or a valid custom layout string.
Example output#
[ok] blog
[ok] api
[error] workers: at least one window is requiredIf any config has errors, nux exits with a non-zero status.
If no project configs are found, nux prints No project configs found.
Examples#
# Check everything
nux validate
# Check one or more projects
nux validate blog
nux validate blog api
nux validate web+
nux validate @workNotes#
- Run this after editing configs by hand, generating them from templates, or as part of a CI pipeline.
- Validation checks structural correctness but does not verify that commands, paths, or directories actually exist.