@@ -9,16 +9,17 @@ import (
9
9
)
10
10
11
11
type FromImmichFlags struct {
12
- DateRange cliflags.DateRange // get assets only within this date range (fromat: YYYY-MM-DD,YYYY-MM-DD)
13
- Albums []string // get assets only from those albums
14
- Tags []string // get assets only with those tags
15
- WithArchived bool // get archived assets too
16
- WithTrashed bool // get trashed assets too
17
- Favorite bool // get only favorite assets
18
- MinimalRating int // get only assets with a rating greater or equal to this value
19
- Make string // get only assets with this make
20
- Model string // get only assets with this model
21
- client app.Client // client to use for the import
12
+ DateRange cliflags.DateRange // get assets only within this date range (fromat: YYYY-MM-DD,YYYY-MM-DD)
13
+ Albums []string // get assets only from those albums
14
+ Tags []string // get assets only with those tags
15
+ WithArchived bool // get archived assets too
16
+ WithTrashed bool // get trashed assets too
17
+ Favorite bool // get only favorite assets
18
+ MinimalRating int // get only assets with a rating greater or equal to this value
19
+ Make string // get only assets with this make
20
+ Model string // get only assets with this model
21
+ client app.Client // client to use for the import
22
+ InclusionFlags cliflags.InclusionFlags // controls the file extensions to be included in the import process.
22
23
}
23
24
24
25
func (o * FromImmichFlags ) AddFromImmichFlags (cmd * cobra.Command , parent * cobra.Command ) {
@@ -37,4 +38,5 @@ func (o *FromImmichFlags) AddFromImmichFlags(cmd *cobra.Command, parent *cobra.C
37
38
cmd .Flags ().BoolVar (& o .client .APITrace , "from-api-trace" , false , "Enable trace of api calls" )
38
39
cmd .Flags ().BoolVar (& o .client .SkipSSL , "from-skip-verify-ssl" , false , "Skip SSL verification" )
39
40
cmd .Flags ().DurationVar (& o .client .ClientTimeout , "from-client-timeout" , 5 * time .Minute , "Set server calls timeout" )
41
+ cliflags .AddInclusionFlags (cmd , & o .InclusionFlags )
40
42
}
0 commit comments