Search in sources :

Example 1 with FormatOptions

use of bio.terra.cli.command.shared.options.Format.FormatOptions in project terra-cli by DataBiosphere.

the class Format method execute.

@Override
protected void execute() {
    Config config = Context.getConfig();
    FormatOptions previousFormatOption = config.getFormat();
    config.setFormat(format);
    OUT.println("Output format is " + config.getFormat() + " (" + (config.getFormat() == previousFormatOption ? "UNCHANGED" : "CHANGED") + ").");
}
Also used : Config(bio.terra.cli.businessobject.Config) FormatOptions(bio.terra.cli.command.shared.options.Format.FormatOptions)

Aggregations

Config (bio.terra.cli.businessobject.Config)1 FormatOptions (bio.terra.cli.command.shared.options.Format.FormatOptions)1