Skip to content

Commit

Permalink
Merge branch 'test' into feat/1.4.0/badge
Browse files Browse the repository at this point in the history
  • Loading branch information
kumfo committed Sep 3, 2024
2 parents 2eaa7db + 70acbe3 commit d316764
Show file tree
Hide file tree
Showing 64 changed files with 1,719 additions and 2,389 deletions.
11 changes: 8 additions & 3 deletions cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,17 @@ To run answer, use:
}

field := &cli.ConfigField{}
for _, f := range configFields {
switch f {
fmt.Println(configFields)
if len(configFields) > 0 {
switch configFields[0] {
case "allow_password_login":
field.AllowPasswordLogin = true
case "deactivate_plugin":
if len(configFields) > 1 {
field.DeactivatePluginSlugName = configFields[1]
}
default:
fmt.Printf("field %s not support\n", f)
fmt.Printf("field %s not support\n", configFields[0])
}
}
err = cli.SetDefaultConfig(c.Data.Database, c.Data.Cache, field)
Expand Down
3 changes: 2 additions & 1 deletion cmd/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d316764

Please sign in to comment.