CLI: Improve help for purge command

This commit is contained in:
Michael Mayer 2021-10-05 22:44:27 +02:00
parent de63227767
commit a5c2794611
3 changed files with 4 additions and 4 deletions

View file

@ -141,7 +141,7 @@ func PhotoUnstack(router *gin.RouterGroup) {
// Handle error...
log.Errorf("photo: %s (unstack %s)", err.Error(), txt.Quote(r.BaseName()))
// Remove new photo from database.
// Remove new photo from index.
if _, err := newPhoto.Delete(true); err != nil {
log.Errorf("photo: %s (unstack %s)", err.Error(), txt.Quote(r.BaseName()))
}

View file

@ -20,7 +20,7 @@ import (
// PurgeCommand registers the index cli command.
var PurgeCommand = cli.Command{
Name: "purge",
Usage: "Flags missing files as hidden, updates counts and covers",
Usage: "Flags missing files, updates counts and covers",
Flags: purgeFlags,
Action: purgeAction,
}
@ -28,7 +28,7 @@ var PurgeCommand = cli.Command{
var purgeFlags = []cli.Flag{
cli.BoolFlag{
Name: "hard",
Usage: "permanently remove from database",
Usage: "permanently remove from index",
},
cli.BoolFlag{
Name: "dry",

View file

@ -217,7 +217,7 @@ func (m *File) DeletePermanently() error {
}
if err := UnscopedDb().Delete(FileSync{}, "file_id = ?", m.ID).Error; err != nil {
log.Errorf("file %s: %s while removing sync info", txt.Quote(m.FileUID), err)
log.Errorf("file %s: %s while removing remote sync info", txt.Quote(m.FileUID), err)
}
if err := m.ReplaceHash(""); err != nil {