mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
27 lines
559 B
Go
27 lines
559 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// AuthCommands registers the API authentication subcommands.
|
|
var AuthCommands = &cli.Command{
|
|
Name: "auth",
|
|
Aliases: []string{"sess"},
|
|
Usage: "API authentication subcommands",
|
|
Subcommands: []*cli.Command{
|
|
AuthListCommand,
|
|
AuthAddCommand,
|
|
AuthShowCommand,
|
|
AuthRemoveCommand,
|
|
AuthResetCommand,
|
|
AuthJWTCommands,
|
|
},
|
|
}
|
|
|
|
// tokensFlag represents a CLI flag to include tokens in a report.
|
|
var tokensFlag = &cli.BoolFlag{
|
|
Name: "tokens",
|
|
Usage: "show preview and download tokens",
|
|
}
|