Skip to content

Commit

Permalink
fix(app): fix cli run
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Dec 18, 2023
1 parent d8220d3 commit 4d7a9d1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/app/koicli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"golang.org/x/text/message"
"gopkg.ilharper.com/koi/app/ui/tray"
"gopkg.ilharper.com/koi/core/god"
"gopkg.ilharper.com/koi/core/koiconfig"
"gopkg.ilharper.com/koi/core/logger"
)

Expand Down Expand Up @@ -50,15 +49,8 @@ func newRunAction(i *do.Injector) (cli.ActionFunc, error) {
p := do.MustInvoke[*message.Printer](i)

return func(c *cli.Context) error {
var err error

l.Debug(p.Sprintf("Trigger action: run"))

cfg, err := do.Invoke[*koiconfig.Config](i)
if err != nil {
return err
}

return do.MustInvokeNamed[cli.ActionFunc](i, serviceActionRunUI)(c)
}, nil
}
Expand Down

0 comments on commit 4d7a9d1

Please sign in to comment.