Skip to content

Commit

Permalink
Revert "Revert "add Planner, Genrator""
Browse files Browse the repository at this point in the history
This reverts commit 04212fa.
  • Loading branch information
fujiwara committed Sep 13, 2024
1 parent 842b41a commit 3a34b89
Show file tree
Hide file tree
Showing 6 changed files with 381 additions and 315 deletions.
6 changes: 3 additions & 3 deletions cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (c *PlanCLI) Option() *Option {
Scan: c.Scan,
ScannedFiles: c.ScannedFiles,
Delete: false,
Repository: c.Repository,
Repository: RepositoryName(c.Repository),
}
}

Expand All @@ -96,7 +96,7 @@ func (c *DeleteCLI) Option() *Option {
ScannedFiles: c.ScannedFiles,
Delete: true,
Force: c.Force,
Repository: c.Repository,
Repository: RepositoryName(c.Repository),
}
}

Expand Down Expand Up @@ -139,7 +139,7 @@ func (c *CLI) Run(ctx context.Context) error {

switch c.command {
case "generate":
return c.app.GenerateConfig(ctx, c.Config, c.Generate.Option())
return c.app.GenerateConfig(ctx, c.Config)
case "scan":
return c.app.Run(ctx, c.Config, c.Scan.Option())
case "plan":
Expand Down
Loading

0 comments on commit 3a34b89

Please sign in to comment.