CLI reference
kusaw safepath
Check whether paths stay inside a root
kusaw safepath
Check whether paths stay inside a root
Usage
kusaw safepath [flags]Flags
| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for safepath |
Subcommands
kusaw safepath check
Print ok or refused for each path relative to --root
kusaw safepath check [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for check |
--root | string | Root directory paths must stay inside |
Example:
kusaw safepath check --root . notes/a.mdExit codes
| Code | Name | Description |
|---|---|---|
| 0 | ok | Success. |
| 1 | error | Runtime error. |
| 2 | usage | Usage or validation error. |
| 3 | rejected | Control request rejected; the error string is printed verbatim. |
| 4 | not picked up | Control request not picked up within the wait time while serve runs. |
Example
kusaw safepath check --root . notes/a.md