CLI: Upgrade github.com/urfave/cli from v1 to v2 #3168

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-12-05 17:15:59 +01:00
parent 3b61aba85d
commit 9eef183323
103 changed files with 1961 additions and 1642 deletions

View File

@@ -1,7 +1,7 @@
package commands
import (
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
)
// AuthCommands registers the API authentication subcommands.
@@ -9,17 +9,17 @@ var AuthCommands = cli.Command{
Name: "auth",
Aliases: []string{"sess"},
Usage: "API authentication subcommands",
Subcommands: []cli.Command{
AuthListCommand,
AuthAddCommand,
AuthShowCommand,
AuthRemoveCommand,
AuthResetCommand,
Subcommands: []*cli.Command{
&AuthListCommand,
&AuthAddCommand,
&AuthShowCommand,
&AuthRemoveCommand,
&AuthResetCommand,
},
}
// tokensFlag represents a CLI flag to include tokens in a report.
var tokensFlag = cli.BoolFlag{
var tokensFlag = &cli.BoolFlag{
Name: "tokens",
Usage: "show preview and download tokens",
}