Skip to main content

parse

sunset parse <path> [flags]

Parse scans supported files and writes Markdown. With no path it uses the current directory. Default output is <path>/.sunset/output.

FlagDefaultMeaning
--output<path>/.sunset/outputDestination directory.
--detailsummarysummary or full; full writes a CST dump.
--excludeemptyComma-separated filename or relative-path glob patterns.
--concurrencyCPU countMaximum parallel parsers.
--no-cachefalseDo not load or save the cache; parse every discovered file.
--max-depth0CST depth limit only when --detail full; zero is unlimited.
--quietfalseSuppress normal progress output.

Only --detail, --no-cache, and --max-depth belong to parse. Values other than full for --detail currently fall back to summary output; validate user input yourself if that distinction matters.

sunset parse ./service --detail full --max-depth 4 --exclude "*_test.go,dist/*.js"