mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-17 06:11:00 +08:00
Config: Change position of cache-path command flag
This commit is contained in:
@@ -45,9 +45,9 @@ func configAction(ctx *cli.Context) error {
|
|||||||
fmt.Printf("%-25s %d\n", "originals-limit", conf.OriginalsLimit())
|
fmt.Printf("%-25s %d\n", "originals-limit", conf.OriginalsLimit())
|
||||||
fmt.Printf("%-25s %s\n", "import-path", conf.ImportPath())
|
fmt.Printf("%-25s %s\n", "import-path", conf.ImportPath())
|
||||||
fmt.Printf("%-25s %s\n", "storage-path", conf.StoragePath())
|
fmt.Printf("%-25s %s\n", "storage-path", conf.StoragePath())
|
||||||
|
fmt.Printf("%-25s %s\n", "cache-path", conf.CachePath())
|
||||||
fmt.Printf("%-25s %s\n", "sidecar-path", conf.SidecarPath())
|
fmt.Printf("%-25s %s\n", "sidecar-path", conf.SidecarPath())
|
||||||
fmt.Printf("%-25s %s\n", "albums-path", conf.AlbumsPath())
|
fmt.Printf("%-25s %s\n", "albums-path", conf.AlbumsPath())
|
||||||
fmt.Printf("%-25s %s\n", "cache-path", conf.CachePath())
|
|
||||||
fmt.Printf("%-25s %s\n", "temp-path", conf.TempPath())
|
fmt.Printf("%-25s %s\n", "temp-path", conf.TempPath())
|
||||||
fmt.Printf("%-25s %s\n", "backup-path", conf.BackupPath())
|
fmt.Printf("%-25s %s\n", "backup-path", conf.BackupPath())
|
||||||
fmt.Printf("%-25s %s\n", "assets-path", conf.AssetsPath())
|
fmt.Printf("%-25s %s\n", "assets-path", conf.AssetsPath())
|
||||||
|
@@ -99,16 +99,16 @@ var GlobalFlags = []cli.Flag{
|
|||||||
Usage: "writable storage `PATH` for cache, database, and sidecar files",
|
Usage: "writable storage `PATH` for cache, database, and sidecar files",
|
||||||
EnvVar: "PHOTOPRISM_STORAGE_PATH",
|
EnvVar: "PHOTOPRISM_STORAGE_PATH",
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
|
||||||
Name: "sidecar-path",
|
|
||||||
Usage: "optional custom relative or absolute sidecar `PATH`",
|
|
||||||
EnvVar: "PHOTOPRISM_SIDECAR_PATH",
|
|
||||||
},
|
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "cache-path",
|
Name: "cache-path",
|
||||||
Usage: "optional custom cache `PATH` for sessions and thumbnail files",
|
Usage: "optional custom cache `PATH` for sessions and thumbnail files",
|
||||||
EnvVar: "PHOTOPRISM_CACHE_PATH",
|
EnvVar: "PHOTOPRISM_CACHE_PATH",
|
||||||
},
|
},
|
||||||
|
cli.StringFlag{
|
||||||
|
Name: "sidecar-path",
|
||||||
|
Usage: "optional custom relative or absolute sidecar `PATH`",
|
||||||
|
EnvVar: "PHOTOPRISM_SIDECAR_PATH",
|
||||||
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "temp-path",
|
Name: "temp-path",
|
||||||
Usage: "optional custom temporary file `PATH`",
|
Usage: "optional custom temporary file `PATH`",
|
||||||
|
@@ -49,11 +49,11 @@ type Options struct {
|
|||||||
OriginalsLimit int64 `yaml:"OriginalsLimit" json:"OriginalsLimit" flag:"originals-limit"`
|
OriginalsLimit int64 `yaml:"OriginalsLimit" json:"OriginalsLimit" flag:"originals-limit"`
|
||||||
ImportPath string `yaml:"ImportPath" json:"-" flag:"import-path"`
|
ImportPath string `yaml:"ImportPath" json:"-" flag:"import-path"`
|
||||||
StoragePath string `yaml:"StoragePath" json:"-" flag:"storage-path"`
|
StoragePath string `yaml:"StoragePath" json:"-" flag:"storage-path"`
|
||||||
|
CachePath string `yaml:"CachePath" json:"-" flag:"cache-path"`
|
||||||
SidecarPath string `yaml:"SidecarPath" json:"-" flag:"sidecar-path"`
|
SidecarPath string `yaml:"SidecarPath" json:"-" flag:"sidecar-path"`
|
||||||
TempPath string `yaml:"TempPath" json:"-" flag:"temp-path"`
|
TempPath string `yaml:"TempPath" json:"-" flag:"temp-path"`
|
||||||
BackupPath string `yaml:"BackupPath" json:"-" flag:"backup-path"`
|
BackupPath string `yaml:"BackupPath" json:"-" flag:"backup-path"`
|
||||||
AssetsPath string `yaml:"AssetsPath" json:"-" flag:"assets-path"`
|
AssetsPath string `yaml:"AssetsPath" json:"-" flag:"assets-path"`
|
||||||
CachePath string `yaml:"CachePath" json:"-" flag:"cache-path"`
|
|
||||||
Workers int `yaml:"Workers" json:"Workers" flag:"workers"`
|
Workers int `yaml:"Workers" json:"Workers" flag:"workers"`
|
||||||
WakeupInterval int `yaml:"WakeupInterval" json:"WakeupInterval" flag:"wakeup-interval"`
|
WakeupInterval int `yaml:"WakeupInterval" json:"WakeupInterval" flag:"wakeup-interval"`
|
||||||
AutoIndex int `yaml:"AutoIndex" json:"AutoIndex" flag:"auto-index"`
|
AutoIndex int `yaml:"AutoIndex" json:"AutoIndex" flag:"auto-index"`
|
||||||
|
Reference in New Issue
Block a user