Add ConfigCommand test #58

- Includes refactoring of existing packages to enable testing of commands
This commit is contained in:
Michael Mayer
2018-11-17 13:57:19 +01:00
parent 86a6dda0e0
commit 9872cfaa50
21 changed files with 168 additions and 55 deletions

View File

@@ -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)