mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
CLI: Upgrade github.com/urfave/cli from v1 to v2 #3168
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/manifoldco/promptui"
|
||||
"github.com/urfave/cli"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/photoprism/photoprism/internal/config"
|
||||
"github.com/photoprism/photoprism/internal/entity"
|
||||
@@ -17,7 +17,7 @@ var UsersModCommand = cli.Command{
|
||||
Name: "mod",
|
||||
Usage: "Changes user account settings",
|
||||
ArgsUsage: "[username]",
|
||||
Flags: append(UserFlags, cli.BoolFlag{
|
||||
Flags: append(UserFlags, &cli.BoolFlag{
|
||||
Name: "disable-2fa",
|
||||
Usage: UserDisable2FA,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user