Skip to content

Commit

Permalink
adds action to initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuber committed Aug 4, 2023
1 parent 6ad5db9 commit 82a4374
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/commands/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var Initialize = &cli.Command{
Description: "initializes the speified directory or file with the default template",
Usage: "initializes the speified directory or file with the default template",
UsageText: "caster init [DIRECTORY|FIILE]",
Action: InitializeAction,
Flags: []cli.Flag{
&cli.StringFlag{
Name: InitializeTemplateFlag,
Expand All @@ -35,7 +36,7 @@ type InitializeOptions struct {
Template string
}

func InitAction(ctx *cli.Context) error {
func InitializeAction(ctx *cli.Context) error {
cmd := &InitializeCommand{}
resolver := ctx.App.Metadata[global.DependencyInjectionContainer].(di.Resolver)
err := di.Inject(resolver, cmd)
Expand Down

0 comments on commit 82a4374

Please sign in to comment.