cmd/ent: rename init to new (#3311)

* cmd: rename init to new

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* doc: update guide to use new command

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

---------

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
This commit is contained in:
Giau. Tran Minh
2023-02-12 18:56:18 +07:00
committed by GitHub
parent 349b950978
commit f4bdc36e85
18 changed files with 47 additions and 31 deletions

View File

@@ -15,7 +15,7 @@ go mod init ent-grpc-example
Next, we use `go run` to invoke the ent code generator to initialize a schema:
```console
go run -mod=mod entgo.io/ent/cmd/ent init User
go run -mod=mod entgo.io/ent/cmd/ent new User
```
Our directory should now look like: