diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-07-24 08:49:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 08:49:18 +0200 |
commit | 478f36a53891bac457fa3f9baebae8a6232be1f6 (patch) | |
tree | d49b2f2153b98639585b6ca8f47d20266ac90936 /cmd/manager_logging.go | |
parent | Reduce unnecessary DB queries for Actions tasks (#25199) (diff) | |
download | forgejo-478f36a53891bac457fa3f9baebae8a6232be1f6.tar.xz forgejo-478f36a53891bac457fa3f9baebae8a6232be1f6.zip |
Add missing default value for some Bool cli flags (#26082)
In #25959 I forgot to add default values to some Bool flags (which were
BoolT in cli/v1, BoolT means default to be true)
This PR adds the default "Value" for them.
```
./cmd/manager_logging.go: }, cli.BoolTFlag{
./cmd/manager_logging.go- Name: "rotate, r",
./cmd/manager_logging.go- Usage: "Rotate logs",
--
./cmd/manager_logging.go: }, cli.BoolTFlag{
./cmd/manager_logging.go- Name: "daily, d",
./cmd/manager_logging.go- Usage: "Rotate logs daily",
--
./cmd/manager_logging.go: }, cli.BoolTFlag{
./cmd/manager_logging.go- Name: "compress, z",
./cmd/manager_logging.go- Usage: "Compress rotated logs",
--
./cmd/admin.go: cli.BoolTFlag{
./cmd/admin.go- Name: "force-smtps",
./cmd/admin.go- Usage: "SMTPS is always used on port 465. Set this to force SMTPS on other ports.",
--
./cmd/admin.go: cli.BoolTFlag{
./cmd/admin.go- Name: "skip-verify",
./cmd/admin.go- Usage: "Skip TLS verify.",
--
./cmd/admin.go: cli.BoolTFlag{
./cmd/admin.go- Name: "disable-helo",
./cmd/admin.go- Usage: "Disable SMTP helo.",
--
./cmd/admin.go: cli.BoolTFlag{
./cmd/admin.go- Name: "skip-local-2fa",
./cmd/admin.go- Usage: "Skip 2FA to log on.",
--
./cmd/admin.go: cli.BoolTFlag{
./cmd/admin.go- Name: "active",
./cmd/admin.go- Usage: "This Authentication Source is Activated.",
```
Diffstat (limited to 'cmd/manager_logging.go')
-rw-r--r-- | cmd/manager_logging.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/manager_logging.go b/cmd/manager_logging.go index 84c962561e..7d34fc9ac2 100644 --- a/cmd/manager_logging.go +++ b/cmd/manager_logging.go @@ -117,6 +117,7 @@ var ( Name: "rotate", Aliases: []string{"r"}, Usage: "Rotate logs", + Value: true, }, &cli.Int64Flag{ Name: "max-size", @@ -127,6 +128,7 @@ var ( Name: "daily", Aliases: []string{"d"}, Usage: "Rotate logs daily", + Value: true, }, &cli.IntFlag{ Name: "max-days", @@ -137,6 +139,7 @@ var ( Name: "compress", Aliases: []string{"z"}, Usage: "Compress rotated logs", + Value: true, }, &cli.IntFlag{ Name: "compression-level", |