This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
🚀 Add dawn-cli #2
Labels
feature
New feature
Comments
LOGO: dawn on the ocean
Special thanks to patorjk.com. |
dawn-cli v0.0.1 __
___/ /__ __ _____ dawn-cli v0.0.1
~/ _ / _ '/ |/|/ / _ \~ For the opinionated lightweight framework dawn
~~\_,_/\_,_/|__,__/_//_/~~ Visit https://github.com/kiyonlin/dawn for detail
~~~ ~~ ~~~~~~~~~ ~~~~~~ (c) since 2020 by kiyonlin@163.com
USAGE:
dawn [global options] command [command options] [arguments...]
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print dawn version (default: false) |
Add __
___/ /__ __ _____ dawn-cli v0.0.1
~/ _ / _ '/ |/|/ / _ \~ For the opinionated lightweight framework dawn
~~\_,_/\_,_/|__,__/_//_/~~ Visit https://github.com/kiyonlin/dawn for detail
~~~ ~~ ~~~~~~~~~ ~~~~~~ (c) since 2020 by kiyonlin@163.com
USAGE:
dawn [global options] command [command options] [arguments...]
COMMANDS:
new, n Generate a new dawn project
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print dawn version (default: false) dawn new --help NAME:
dawn new - Generate a new dawn project
USAGE:
new [options] project [mod name]
OPTIONS:
--app create an application project (default: false)
--help, -h show help (default: false) dawn new dawn-demo go: creating new go.mod: module dawn-demo
go: finding module for package github.com/kiyonlin/dawn/fiberx
go: finding module for package github.com/gofiber/fiber/v2
go: finding module for package github.com/kiyonlin/dawn
go: found github.com/gofiber/fiber/v2 in github.com/gofiber/fiber/v2 v2.0.4
go: found github.com/kiyonlin/dawn in github.com/kiyonlin/dawn v0.3.0
Scaffolding project in /path/to/pwd/dawn-demo (module dawn-demo)
Done. Now run:
cd dawn-demo
go run .
✨ Done in 3.130166283s. |
dawn -v dawn version: v0.3.0(latest v0.3.0) dawn version: open go.mod: no such file or directory(latest v0.3.0) |
v0.0.2 with __
___/ /__ __ _____ dawn-cli v0.0.2
~/ _ / _ '/ |/|/ / _ \~ For the opinionated lightweight framework dawn
~~\_,_/\_,_/|__,__/_//_/~~ Visit https://github.com/kiyonlin/dawn for detail
~~~ ~~ ~~~~~~~~~ ~~~~~~ (c) since 2020 by kiyonlin@163.com
USAGE:
dawn [global options] command [command options] [arguments...]
COMMANDS:
new, n Generate a new dawn project
module, m Generate a new dawn module
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print dawn version (default: false)
NAME:
dawn module - Generate a new dawn module
USAGE:
dawn module name
Scaffolding module in /path/to/pwd/dawn-demo/hello
Done. Now run:
cd hello
go test . -cover
🎊 Done in 563.455µs. |
Use fsnotify to watch files and rerun the dawn project. Options will be:
|
v0.0.3 with __
___/ /__ __ _____ dawn-cli v0.0.3
~/ _ / _ '/ |/|/ / _ \~ For the opinionated lightweight framework dawn
~~\_,_/\_,_/|__,__/_//_/~~ Visit https://github.com/kiyonlin/dawn for detail
~~~ ~~ ~~~~~~~~~ ~~~~~~ (c) since 2020 by kiyon@gofiber.io
USAGE:
dawn [global options] command [command options] [arguments...]
COMMANDS:
new, n Generate a new dawn project
module, m Generate a new dawn module
dev Rerun the dawn project if watched files change
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--version, -v print dawn version (default: false)
NAME:
dawn dev - Rerun the dawn project if watched files change
USAGE:
dawn dev [options]
OPTIONS:
--root value, -r value root path for watch, all files must be under root (default: ".")
--target value, -t value target path for go build (default: ".")
--extensions value, --ext value file extensions to watch (default: "go", "tmpl", "tpl", "html")
--exclude_dirs value, --ed value ignore these directories (default: "assets", "tmp", "vendor", "node_modules")
--exclude_files value, --ef value ignore these files
--delay value, -d value delay to trigger rerun (default: 1s)
2020/10/10 08:37:58 Welcome to dawn dev 👋
2020/10/10 08:38:00 Compile done!
2020/10/10 08:38:00 New pid is 62012
┌───────────────────────────────────────────────────┐
│ Fiber v2.0.6 │
│ http://127.0.0.1:3000 │
│ │
│ Handlers ............. 5 Threads ............. 8 │
│ Prefork ....... Disabled PID ............. 62012 │
└───────────────────────────────────────────────────┘
^C2020/10/10 08:38:06 See you next time 👋 |
v0.0.7 with cobra and __
___/ /__ __ _____ dawn-cli v0.0.7
~/ _ / _ '/ |/|/ / _ \~ For the opinionated lightweight framework dawn
~~\_,_/\_,_/|__,__/_//_/~~ Visit https://github.com/kiyonlin/dawn for detail
~~~ ~~ ~~~~~~~~~ ~~~~~~ (c) since 2020 by kiyon@gofiber.io
Usage:
dawn [flags]
dawn [command]
Available Commands:
dev Rerun the dawn project if watched files changed
generate Generate boilerplate code with different commands
help Help about any command
new Generate a new dawn project
version Print the version number of dawn
Flags:
-h, --help help for dawn
Use "dawn [command] --help" for more information about a command.
Generate boilerplate code with different commands
Usage:
dawn generate [flags]
dawn generate [command]
Aliases:
generate, g
Available Commands:
module Generate a new dawn module
Flags:
-h, --help help for generate
Use "dawn generate [command] --help" for more information about a command. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the solution you'd like
Add dawn command line interface based on
clicobra.Additional context
The text was updated successfully, but these errors were encountered: