Skip to Content
kusaw docsv1.0.0
CLI reference

kusaw safepath

Check whether paths stay inside a root

kusaw safepath

Check whether paths stay inside a root

Usage

Text
kusaw safepath [flags]

Flags

NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for safepath

Subcommands

kusaw safepath check

Print ok or refused for each path relative to --root

Text
kusaw safepath check [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for check
--rootstringRoot directory paths must stay inside

Example:

Text
kusaw safepath check --root . notes/a.md

Exit codes

CodeNameDescription
0okSuccess.
1errorRuntime error.
2usageUsage or validation error.
3rejectedControl request rejected; the error string is printed verbatim.
4not picked upControl request not picked up within the wait time while serve runs.

Example

Text
kusaw safepath check --root . notes/a.md

On this page