mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
cmd/ent: hide the --idtype flag from generate command (#3490)
The --idtype flag predates the field.<Type>(id) option. See, https://entgo.io/docs/schema-fields\#id-field.
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
func TestCmd(t *testing.T) {
|
||||
defer os.RemoveAll("ent")
|
||||
cmd := exec.Command("go", "run", "entgo.io/ent/cmd/entc", "init", "User")
|
||||
cmd := exec.Command("go", "run", "entgo.io/ent/cmd/entc", "new", "User")
|
||||
stderr := bytes.NewBuffer(nil)
|
||||
cmd.Stderr = stderr
|
||||
require.NoError(t, cmd.Run(), stderr.String())
|
||||
|
||||
Reference in New Issue
Block a user