We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6252eae commit ee37492Copy full SHA for ee37492
cmd/jetti/main.go
@@ -1,7 +1,6 @@
1
package main
2
3
import (
4
- "fmt"
5
"github.com/alecthomas/kong"
6
"github.com/snowmerak/jetti/v2/internal/executor"
7
"github.com/snowmerak/jetti/v2/internal/executor/cli"
@@ -17,7 +16,6 @@ func main() {
17
16
panic(err)
18
}
19
20
- fmt.Println(ctx.Command())
21
switch ctx.Command() {
22
case cli.Generate:
23
if err := executor.Generate(pwd); err != nil {
@@ -28,6 +26,10 @@ func main() {
28
26
29
27
30
case cli.Run:
+ fallthrough
31
case cli.RunArgs:
+ if err := executor.Run(pwd, param.Run.CommandName, param.Run.Args...); err != nil {
32
+ panic(err)
33
+ }
34
35
0 commit comments