Skip to content

Commit

Permalink
fixed fixture case when injecting
Browse files Browse the repository at this point in the history
  • Loading branch information
arontaubyte committed Aug 9, 2023
1 parent e7778a7 commit c689a3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/inject/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func fixture(multiverse *client.Client) []*cli.Command {
Name: noCamel(fixtureName),
Description: obj.Description,
Usage: obj.Description,
Action: runFixture(multiverse),
Action: runFixture(fixtureName, multiverse),
}
command.Universe0(c)

Expand All @@ -62,7 +62,7 @@ func fixture(multiverse *client.Client) []*cli.Command {
return commands
}

func runFixture(multiverse *client.Client) cli.ActionFunc {
func runFixture(name string, multiverse *client.Client) cli.ActionFunc {
return func(c *cli.Context) (err error) {
universeName := c.String("universe")
sendParams := make([]string, 0)
Expand All @@ -77,6 +77,6 @@ func runFixture(multiverse *client.Client) cli.ActionFunc {
}

universe := multiverse.Universe(universeName)
return universe.Inject(inject.Fixture(c.Command.Name, sendParams))
return universe.Inject(inject.Fixture(name, sendParams))
}
}

0 comments on commit c689a3d

Please sign in to comment.