diff --git a/README.md b/README.md index b00d65d85..f8b5bc11c 100644 --- a/README.md +++ b/README.md @@ -82,13 +82,8 @@ go get github.com/go-eagle/eagle/cmd/eagle ## Quick Start ```bash -# only gen a server with http -eagle new eagle-demo -# or -eagle new github.com/foo/eagle-demo - # gen a server with http and gRPC -eagle new -b=main eagle-demo +eagle new eagle-demo # or eagle new github.com/foo/eagle-demo @@ -116,6 +111,7 @@ make run ## Discussion - Issue: https://github.com/go-eagle/eagle/issues +- Discord: https://discord.com/channels/968369660900814869 ## Microservice Roadmap diff --git a/cmd/eagle/internal/project/project.go b/cmd/eagle/internal/project/project.go index a0b4937a5..6cf1e5fd5 100644 --- a/cmd/eagle/internal/project/project.go +++ b/cmd/eagle/internal/project/project.go @@ -30,13 +30,13 @@ func init() { repoURL = "https://github.com/go-eagle/eagle-layout.git" } - // default http, only include http server - branch = "http" + // default main, you can change to other branch, eg: http + branch = "main" // default timeout timeout = "60s" CmdNew.Flags().StringVarP(&repoURL, "repo-url", "r", repoURL, "layout repo") - CmdNew.Flags().StringVarP(&branch, "branch", "b", branch, "default is http server, empty is http and gRPC") + CmdNew.Flags().StringVarP(&branch, "branch", "b", branch, "default is main branch, including http and gRPC") CmdNew.Flags().StringVarP(&timeout, "timeout", "t", timeout, "request timeout time") } diff --git a/cmd/eagle/main.go b/cmd/eagle/main.go index 3e0c66702..c7a43ac0e 100644 --- a/cmd/eagle/main.go +++ b/cmd/eagle/main.go @@ -19,7 +19,7 @@ import ( var ( // Version is the version of the compiled software. - Version = "v1.0.0" + Version = "v1.0.1" rootCmd = &cobra.Command{ Use: "eagle",