Skip to content

Commit 9da2e92

Browse files
committed
Metadata: Improve CLI command descriptions #1736
1 parent 73ffa53 commit 9da2e92

File tree

12 files changed

+18
-19
lines changed

12 files changed

+18
-19
lines changed

internal/commands/cleanup.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"time"
66

77
"github.com/dustin/go-humanize/english"
8-
98
"github.com/urfave/cli"
109

1110
"github.com/photoprism/photoprism/internal/config"
@@ -16,7 +15,7 @@ import (
1615
// CleanUpCommand registers the cleanup command.
1716
var CleanUpCommand = cli.Command{
1817
Name: "cleanup",
19-
Usage: "Removes orphan index entries and thumbnails",
18+
Usage: "Removes orphan index entries and thumbnail files",
2019
Flags: cleanUpFlags,
2120
Action: cleanUpAction,
2221
}
@@ -45,7 +44,7 @@ func cleanUpAction(ctx *cli.Context) error {
4544
conf.InitDb()
4645

4746
if conf.ReadOnly() {
48-
log.Infof("cleanup: read-only mode enabled")
47+
log.Infof("config: read-only mode enabled")
4948
}
5049

5150
w := service.CleanUp()

internal/commands/convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
// ConvertCommand registers the convert cli command.
1717
var ConvertCommand = cli.Command{
1818
Name: "convert",
19-
Usage: "Transcodes files in other formats to JPEG / AVC",
19+
Usage: "Transcodes other formats to JPEG and AVC",
2020
ArgsUsage: "[path]",
2121
Action: convertAction,
2222
}

internal/commands/faces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func facesIndexAction(ctx *cli.Context) error {
245245
}
246246

247247
if conf.ReadOnly() {
248-
log.Infof("index: read-only mode enabled")
248+
log.Infof("config: read-only mode enabled")
249249
}
250250

251251
var indexed fs.Done

internal/commands/index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func indexAction(ctx *cli.Context) error {
6363
}
6464

6565
if conf.ReadOnly() {
66-
log.Infof("index: read-only mode enabled")
66+
log.Infof("config: read-only mode enabled")
6767
}
6868

6969
var indexed fs.Done

internal/commands/moments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func momentsAction(ctx *cli.Context) error {
3434
conf.InitDb()
3535

3636
if conf.ReadOnly() {
37-
log.Infof("moments: read-only mode enabled")
37+
log.Infof("config: read-only mode enabled")
3838
}
3939

4040
w := service.Moments()

internal/commands/optimize.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import (
1414
// OptimizeCommand registers the index cli command.
1515
var OptimizeCommand = cli.Command{
1616
Name: "optimize",
17-
Usage: "Performs photo metadata maintenance",
17+
Usage: "Updates estimates, titles, and descriptions",
1818
Action: optimizeAction,
1919
}
2020

21-
// optimizeAction starts metadata check and optimization.
21+
// optimizeAction updates metadata such as titles and estimate.
2222
func optimizeAction(ctx *cli.Context) error {
2323
start := time.Now()
2424

@@ -35,7 +35,7 @@ func optimizeAction(ctx *cli.Context) error {
3535
conf.InitDb()
3636

3737
if conf.ReadOnly() {
38-
log.Infof("optimize: read-only mode enabled")
38+
log.Infof("config: read-only mode enabled")
3939
}
4040

4141
worker := workers.NewMeta(conf)

internal/commands/places.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import (
1717
// PlacesCommand registers the places subcommands.
1818
var PlacesCommand = cli.Command{
1919
Name: "places",
20-
Usage: "Geolocation management subcommands",
20+
Usage: "Geodata management subcommands",
2121
Subcommands: []cli.Command{
2222
{
2323
Name: "update",
24-
Usage: "Updates the index with the latest geodata from our backend",
24+
Usage: "Updates your index with the latest location data",
2525
Action: placesUpdateAction,
2626
},
2727
},

internal/commands/purge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func purgeAction(ctx *cli.Context) error {
6262
}
6363

6464
if conf.ReadOnly() {
65-
log.Infof("purge: read-only mode enabled")
65+
log.Infof("config: read-only mode enabled")
6666
}
6767

6868
w := service.Purge()

internal/commands/reset.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// ResetCommand resets the index and removes sidecar files after confirmation.
1919
var ResetCommand = cli.Command{
2020
Name: "reset",
21-
Usage: "Resets the index and removes JSON / YAML sidecar files",
21+
Usage: "Resets the index and removes generated sidecar files",
2222
Action: resetAction,
2323
}
2424

@@ -27,7 +27,7 @@ func resetAction(ctx *cli.Context) error {
2727
log.Warnf("YOU ARE ABOUT TO RESET THE INDEX AND REMOVE ALL JSON / YAML SIDECAR FILES")
2828

2929
removeIndexPrompt := promptui.Prompt{
30-
Label: "Reset index database incl all albums and metadata?",
30+
Label: "Reset index database including albums and metadata?",
3131
IsConfirm: true,
3232
}
3333

internal/commands/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func startAction(ctx *cli.Context) error {
104104
}
105105

106106
if conf.ReadOnly() {
107-
log.Infof("start: read-only mode enabled")
107+
log.Infof("config: read-only mode enabled")
108108
}
109109

110110
// start web server

0 commit comments

Comments
 (0)