All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nagyesta.filebarj.job.cli.Task Maven / Gradle / Ivy

There is a newer version: 1.0.17
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy