com.github.nagyesta.filebarj.job.cli.Task Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of file-barj-job Show documentation
Show all versions of file-barj-job Show documentation
Executable Jar for easy execution of backup or restore jobs.
package com.github.nagyesta.filebarj.job.cli;
import lombok.Getter;
/**
* Represents the different tasks that can be executed.
*/
@Getter
public enum Task {
/**
* Creating a backup.
*/
BACKUP("backup"),
/**
* Restoring the contents of a backup.
*/
RESTORE("restore"),
/**
* Merging the contents of some backup increments.
*/
MERGE("merge"),
/**
* Generating a key pair for the encryption.
*/
GEN_KEYS("gen-keys"),
/**
* Listing the increments of a backup.
*/
INSPECT_INCREMENTS("inspect-increments"),
/**
* Listing the contents of a backup increment.
*/
INSPECT_CONTENT("inspect-content"),
/**
* Deleting the increments of a backup.
*/
DELETE_INCREMENTS("delete");
private final String command;
/**
* Initializes a constant.
*
* @param command the name of the command
*/
Task(final String command) {
this.command = command;
}
}