Dawn Command Line Interface
go get -u github.com/go-dawn/cli/dawn
__
___/ /__ __ _____ dawn-cli v0.0.x
~/ _ / _ '/ |/|/ / _ \~ For the opinionated lightweight framework dawn
~~\_,_/\_,_/|__,__/_//_/~~ Visit https://github.com/go-dawn/dawn for detail
~~~ ~~ ~~~~~~~~~ ~~~~~~ (c) since 2020 by kiyonlin@gmail.com
-h, --help help for dawn
Rerun the dawn project if watched files changed
dawn dev [flags]
-d, --delay duration delay to trigger rerun (default 1s)
-D, --exclude_dirs strings ignore these directories (default [assets,tmp,vendor,node_modules])
-F, --exclude_files strings ignore these files
-e, --extensions strings file extensions to watch (default [go,tmpl,tpl,html])
-h, --help help for dev
-r, --root string root path for watch, all files must be under root (default ".")
-t, --target string target path for go build (default ".")
Generate boilerplate code with different commands
dawn generate [flags]
dawn generate [command]
module Generate a new dawn module
-h, --help help for dev
Generate a new dawn module
dawn generate module NAME [flags]
dawn module hello
Generates a new module dir named hello includes boilerplate code
-h, --help help for dev
Generate a new dawn web/application project
dawn new PROJECT [module name] [flags]
dawn new dawn-demo
Generates a web project with go module name dawn-demo
dawn new dawn-demo github.com/go-dawn/dawn-demo
Specific the go module name
dawn new dawn-demo --app
Generate an application project
-h, --help help for new
-t, --template string basic|complex (default "basic")
Upgrade Dawn cli if a newer version is available
dawn upgrade [flags]
-h, --help help for upgrade
Print the local and released version number of dawn
dawn version [flags]
-h, --help help for version