Files
kewt/packaging/zsh/_kewt
N0\A 90d8e25b70
All checks were successful
Lint / shellcheck (push) Successful in 18s
feat: --clean and --init
2026-04-01 12:53:25 +02:00

26 lines
1.0 KiB
Plaintext

#compdef kewt
_kewt() {
local -a args
args=(
'--help[Show help message]'
'(-h)--help[Show help message]'
'(-)--new[Create a new site directory]'
'(-)--init[Create a new site directory (alias for --new)]'
'(-)--clean[Clean the output directory before building]'
'(-)--no-clean[Do not clean the output directory before building]'
'(-)--update[Update site.conf and template.html with latest defaults]'
'(-)--post[Create a new empty post file in the configured posts_dir]'
'(-)--generate-template[Generate a new template file]'
'(-v --version)'{-v,--version}'[Show version information]'
'--from[Source directory]:directory:_directories'
'--to[Output directory]:directory:_directories'
'(-w --watch)'{-w,--watch}'[Watch for file changes and rebuild automatically]'
'(-s --serve)'{-s,--serve}'[Start a local HTTP server after building]::port:'
)
_arguments -S -C $args '*: :_directories'
}
_kewt "$@"