Skip to content

Commit

Permalink
revert(golang/go): pass through flags
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Oct 28, 2024
1 parent 0042222 commit f051240
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions golang/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,8 @@ func (c *Command) build(ctx context.Context, r *readline.Readline) error {
wg.Go(func() error {
c.l.Info("└ " + value)
return shell.New(ctx, c.l,
"go", "build",
"go", "build", "-v", "./...", // TODO select test
).
Args(r.Flags()...).
Args("-v", "./...").
Args(r.AdditionalArgs()...).
Dir(value).
Run()
Expand Down Expand Up @@ -285,7 +283,6 @@ func (c *Command) modDownload(ctx context.Context, r *readline.Readline) error {
return shell.New(ctx, c.l,
"go", "mod", "tidy",
).
Args(r.Flags()...).
Args(r.AdditionalArgs()...).
Dir(value).
Run()
Expand Down Expand Up @@ -331,7 +328,6 @@ func (c *Command) workInit(ctx context.Context, r *readline.Readline) error {
func (c *Command) workUse(ctx context.Context, r *readline.Readline) error {
return shell.New(ctx, c.l, "go").
Args(r.Args()...).
Args(r.Flags()...).
Args(r.AdditionalArgs()...).
Run()
}
Expand All @@ -358,7 +354,6 @@ func (c *Command) lint(ctx context.Context, r *readline.Readline) error {
).
Args(args...).
Args(fsd.Visited().Args()...).
Args(r.Flags()...).
Args(r.AdditionalArgs()...).
Dir(value).
Run()
Expand All @@ -383,7 +378,6 @@ func (c *Command) generate(ctx context.Context, r *readline.Readline) error {
return shell.New(ctx, c.l,
"go", "generate", value,
).
Args(r.Flags()...).
Args(r.AdditionalArgs()...).
Run()
})
Expand Down

0 comments on commit f051240

Please sign in to comment.