Skip to content

Commit ee37492

Browse files
committed
apply run command
1 parent 6252eae commit ee37492

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/jetti/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package main
22

33
import (
4-
"fmt"
54
"github.com/alecthomas/kong"
65
"github.com/snowmerak/jetti/v2/internal/executor"
76
"github.com/snowmerak/jetti/v2/internal/executor/cli"
@@ -17,7 +16,6 @@ func main() {
1716
panic(err)
1817
}
1918

20-
fmt.Println(ctx.Command())
2119
switch ctx.Command() {
2220
case cli.Generate:
2321
if err := executor.Generate(pwd); err != nil {
@@ -28,6 +26,10 @@ func main() {
2826
panic(err)
2927
}
3028
case cli.Run:
29+
fallthrough
3130
case cli.RunArgs:
31+
if err := executor.Run(pwd, param.Run.CommandName, param.Run.Args...); err != nil {
32+
panic(err)
33+
}
3234
}
3335
}

0 commit comments

Comments
 (0)