Skip to content

Commit

Permalink
Fix cmd line version
Browse files Browse the repository at this point in the history
  • Loading branch information
mingan666 committed Dec 29, 2022
1 parent d751ad9 commit 9655e7e
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
* are made available under the terms of the GNU Public License v2.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
*
* Contributors:
* Matthieu Helleboid - initial API and implementation
******************************************************************************/
package org.piwigo.remotesync.api;

import org.piwigo.remotesync.api.AbstractMain;
import org.piwigo.remotesync.api.sync.LoginJob;
import org.piwigo.remotesync.api.sync.SyncJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -20,9 +22,12 @@ public class Main extends AbstractMain {
public static void main(String[] args) {
new Main().run(args);
}

protected void start() {
logger.debug("will start batch Remotesync");
LoginJob preJob = new LoginJob();
preJob.execute();
new SyncJob(preJob).execute();
}

// // TODO implement dry run
Expand Down

0 comments on commit 9655e7e

Please sign in to comment.