Skip to content

Commit

Permalink
chore: modify default to main for creating a project (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
qloog authored Nov 22, 2024
1 parent e847aa4 commit 7ed3b22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -116,6 +111,7 @@ make run
## Discussion

- Issue: https://github.com/go-eagle/eagle/issues
- Discord: https://discord.com/channels/968369660900814869

## Microservice Roadmap

Expand Down
6 changes: 3 additions & 3 deletions cmd/eagle/internal/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/eagle/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7ed3b22

Please sign in to comment.