mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Add ConfigCommand test #58
- Includes refactoring of existing packages to enable testing of commands
This commit is contained in:
@@ -9,13 +9,13 @@ import (
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
// Re-indexes all photos in originals directory (photo library)
|
||||
var IndexCommand = cli.Command{
|
||||
Name: "index",
|
||||
Usage: "Re-indexes all originals",
|
||||
Action: indexAction,
|
||||
}
|
||||
|
||||
// Indexes original photos; called by IndexCommand
|
||||
func indexAction(ctx *cli.Context) error {
|
||||
conf := context.NewConfig(ctx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user