Skip to content

Commit 857993b

Browse files
committed
fix doc subcommand
1 parent 03c9ee9 commit 857993b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/gd/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ func gd(args ...string) error {
135135
}
136136
fmt.Println("gd version", version)
137137
return tooling.Go.Exec(args...)
138-
case "doc", "build", "run", "test":
138+
case "doc":
139+
return doc(args[1:]...)
140+
case "build", "run", "test":
139141
default:
140142
return tooling.Go.Exec(args...)
141143
}
@@ -257,8 +259,6 @@ func gd(args ...string) error {
257259
return tooling.Godot.Exec(append([]string{"-e"}, editorArgs...)...)
258260
default:
259261
switch args[0] {
260-
case "doc":
261-
return doc(args[1:]...)
262262
case "build":
263263
if err := os.Chdir(project.Directory); err != nil {
264264
return xray.New(err)

0 commit comments

Comments
 (0)