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:
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user