mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 11:52:57 +03:00
Full application rewrite, v2 version introduced
This commit is contained in:
@@ -19,7 +19,7 @@ structure for that files.
|
||||
|
||||
## Installing
|
||||
```bash
|
||||
go install github.com/derfenix/photocatalog/cmd/photocatalog@latest
|
||||
go install github.com/derfenix/photocatalog@latest
|
||||
```
|
||||
Optionally you could copy created binary from the GO's bin path to
|
||||
system or user $PATH, e.g. /usr/local/bin/.
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/derfenix/photocatalog/internal/organizer"
|
||||
"github.com/derfenix/photocatalog/internal/organizer/modes"
|
||||
"github.com/derfenix/photocatalog/v2/internal/organizer"
|
||||
"github.com/derfenix/photocatalog/v2/internal/organizer/modes"
|
||||
)
|
||||
|
||||
type Application struct {
|
||||
|
||||
8
go.mod
8
go.mod
@@ -1,10 +1,10 @@
|
||||
module github.com/derfenix/photocatalog
|
||||
module github.com/derfenix/photocatalog/v2
|
||||
|
||||
go 1.22
|
||||
|
||||
require (
|
||||
github.com/fsnotify/fsnotify v1.4.7
|
||||
github.com/pkg/errors v0.8.1
|
||||
github.com/fsnotify/fsnotify v1.8.0
|
||||
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd
|
||||
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa // indirect
|
||||
)
|
||||
|
||||
require golang.org/x/sys v0.28.0 // indirect
|
||||
|
||||
6
go.sum
6
go.sum
@@ -1,8 +1,10 @@
|
||||
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
|
||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M=
|
||||
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
|
||||
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd h1:CmH9+J6ZSsIjUK3dcGsnCnO41eRBOnY12zwkn5qVwgc=
|
||||
github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd/go.mod h1:hPqNNc0+uJM6H+SuU8sEs5K5IQeKccPqeSjfgcKGgPk=
|
||||
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa h1:KIDDMLT1O0Nr7TSxp8xM5tJcdn8tgyAONntO829og1M=
|
||||
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
|
||||
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
. "github.com/derfenix/photocatalog/internal/metadata"
|
||||
. "github.com/derfenix/photocatalog/v2/internal/metadata"
|
||||
)
|
||||
|
||||
func TestDefault_Extract(t *testing.T) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
. "github.com/derfenix/photocatalog/internal/organizer/modes"
|
||||
. "github.com/derfenix/photocatalog/v2/internal/organizer/modes"
|
||||
)
|
||||
|
||||
func TestCopy_PlaceIt(t *testing.T) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
. "github.com/derfenix/photocatalog/internal/organizer/modes"
|
||||
. "github.com/derfenix/photocatalog/v2/internal/organizer/modes"
|
||||
)
|
||||
|
||||
func TestHardLink_PlaceIt(t *testing.T) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
. "github.com/derfenix/photocatalog/internal/organizer/modes"
|
||||
. "github.com/derfenix/photocatalog/v2/internal/organizer/modes"
|
||||
)
|
||||
|
||||
func TestMove_PlaceIt(t *testing.T) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
. "github.com/derfenix/photocatalog/internal/organizer/modes"
|
||||
. "github.com/derfenix/photocatalog/v2/internal/organizer/modes"
|
||||
)
|
||||
|
||||
func TestSymLink_PlaceIt(t *testing.T) {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
|
||||
"github.com/fsnotify/fsnotify"
|
||||
|
||||
"github.com/derfenix/photocatalog/internal/metadata"
|
||||
"github.com/derfenix/photocatalog/v2/internal/metadata"
|
||||
)
|
||||
|
||||
type MetaExtractor interface {
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/derfenix/photocatalog/internal/metadata"
|
||||
"github.com/derfenix/photocatalog/internal/organizer/modes"
|
||||
"github.com/derfenix/photocatalog/v2/internal/metadata"
|
||||
"github.com/derfenix/photocatalog/v2/internal/organizer/modes"
|
||||
)
|
||||
|
||||
func TestOrganizer_FullSync(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user