photoprism/internal/commands/auth.go
Michael Mayer f767f6a1d9 Auth: Rename "auth clear" command to "auth reset" for consistency #808
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-18 17:15:22 +01:00

26 lines
534 B
Go

package commands
import (
"github.com/urfave/cli"
)
// 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,
},
}
// tokensFlag represents a CLI flag to include tokens in a report.
var tokensFlag = cli.BoolFlag{
Name: "tokens",
Usage: "show preview and download tokens",
}