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:
Ariel Mashraki
2023-04-18 15:54:14 +03:00
committed by GitHub
parent 0d1257f5f2
commit 0508677ce7
5 changed files with 10 additions and 5 deletions

View File

@@ -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())