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

io.quarkus.cli.common.RunModeOption Maven / Gradle / Ivy

There is a newer version: 3.15.0
Show newest version
package io.quarkus.cli.common;

import picocli.CommandLine;

public class RunModeOption {

    @CommandLine.Option(names = { "-B",
            "--batch-mode" }, description = "Run in non-interactive (batch) mode.")
    boolean batchMode;

    @CommandLine.Option(names = { "--dryrun" }, description = "Show actions that would be taken.")
    boolean dryRun = false;

    public boolean isBatchMode() {
        return batchMode;
    }

    public boolean isDryRun() {
        return dryRun;
    }

    @Override
    public String toString() {
        return "RunModeOption [batchMode=" + batchMode + ", dryRun=" + dryRun + "]";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy