fixes read only option
This commit is contained in:
parent
092738d767
commit
2ceef99d1a
@ -6,7 +6,7 @@ namespace PiwigoDirectorySync.Commands;
|
|||||||
internal class SyncCommandSettings : CommonCommandSettings
|
internal class SyncCommandSettings : CommonCommandSettings
|
||||||
{
|
{
|
||||||
[Description("specify this flag to only read from the piwigo server and skip all updates. This might help on initial sync with an existing gallerie to not change any data.")]
|
[Description("specify this flag to only read from the piwigo server and skip all updates. This might help on initial sync with an existing gallerie to not change any data.")]
|
||||||
[CommandOption("-ro|--read-only")]
|
[CommandOption("-r|--read-only")]
|
||||||
[DefaultValue(false)]
|
[DefaultValue(false)]
|
||||||
public bool ReadOnly { get; set; }
|
public bool ReadOnly { get; set; }
|
||||||
}
|
}
|
@ -13,6 +13,12 @@
|
|||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"SyncAlbumsReadOnly": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"commandLineArgs": "sync albums 1 -r",
|
||||||
|
"environmentVariables": {
|
||||||
|
}
|
||||||
|
},
|
||||||
"SyncImages": {
|
"SyncImages": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"commandLineArgs": "sync images 1",
|
"commandLineArgs": "sync images 1",
|
||||||
@ -25,6 +31,12 @@
|
|||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"SyncFullReadOnly": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"commandLineArgs": "sync full 1 -r",
|
||||||
|
"environmentVariables": {
|
||||||
|
}
|
||||||
|
},
|
||||||
"Download": {
|
"Download": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"commandLineArgs": "download",
|
"commandLineArgs": "download",
|
||||||
|
Loading…
Reference in New Issue
Block a user