Skip to content

Commit

Permalink
refactor(app): remove mode config
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Dec 18, 2023
1 parent 3125e50 commit d8220d3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
)

var defaultConfigData = koiconfig.ConfigData{
Mode: "ui",
Open: "auto",
Isolate: "normal",
Start: nil,
Expand Down
4 changes: 0 additions & 4 deletions packages/app/koicli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ func newRunAction(i *do.Injector) (cli.ActionFunc, error) {
return err
}

if cfg.Data.Mode == "cli" {
l.Warn("`koi run` will run in UI mode regardless of `mode` config as of v1.0.0. To start daemon, use `koi run daemon`. The `mode` config is deprecated and scheduled to be removed in several releases. Delete this config ASAP.")
}

return do.MustInvokeNamed[cli.ActionFunc](i, serviceActionRunUI)(c)
}, nil
}
Expand Down
1 change: 0 additions & 1 deletion packages/core/koiconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ type Config struct {

//goland:noinspection GoNameStartsWithPackageName
type ConfigData struct {
Mode string `yaml:"mode"`
Open string `yaml:"open"`
Isolate string `yaml:"isolate"`
Start []string
Expand Down

0 comments on commit d8220d3

Please sign in to comment.