66 lines
1.6 KiB
Go
66 lines
1.6 KiB
Go
package commands
|
|
|
|
import "github.com/urfave/cli"
|
|
|
|
// Global CLI flags
|
|
var GlobalFlags = []cli.Flag{
|
|
cli.BoolFlag{
|
|
Name: "debug",
|
|
Usage: "run in debug mode",
|
|
EnvVar: "PHOTOPRISM_DEBUG",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "config-file, c",
|
|
Usage: "load configuration from `FILENAME`",
|
|
Value: "/etc/photoprism/photoprism.yml",
|
|
EnvVar: "PHOTOPRISM_CONFIG_FILE",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "darktable-cli",
|
|
Usage: "darktable command-line executable `FILENAME`",
|
|
Value: "/usr/bin/darktable-cli",
|
|
EnvVar: "PHOTOPRISM_DARKTABLE_CLI",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "originals-path",
|
|
Usage: "originals `PATH`",
|
|
Value: "/srv/photoprism/photos/originals",
|
|
EnvVar: "PHOTOPRISM_ORIGINALS_PATH",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "import-path",
|
|
Usage: "import `PATH`",
|
|
Value: "/srv/photoprism/photos/import",
|
|
EnvVar: "PHOTOPRISM_IMPORT_PATH",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "export-path",
|
|
Usage: "export `PATH`",
|
|
Value: "/srv/photoprism/photos/export",
|
|
EnvVar: "PHOTOPRISM_EXPORT_PATH",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "cache-path",
|
|
Usage: "cache `PATH`",
|
|
Value: "/srv/photoprism/cache",
|
|
EnvVar: "PHOTOPRISM_CACHE_PATH",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "assets-path",
|
|
Usage: "assets `PATH`",
|
|
Value: "/srv/photoprism",
|
|
EnvVar: "PHOTOPRISM_ASSETS_PATH",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "database-driver",
|
|
Usage: "database `DRIVER` (tidb or mysql)",
|
|
Value: "tidb",
|
|
EnvVar: "PHOTOPRISM_DATABASE_DRIVER",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "database-dsn",
|
|
Usage: "database data source name (`DSN`)",
|
|
Value: "root:@tcp(localhost:4000)/photoprism?parseTime=true",
|
|
EnvVar: "PHOTOPRISM_DATABASE_DSN",
|
|
},
|
|
}
|