com.redislabs.riot.cli.file.FileWriterOptions Maven / Gradle / Ivy
package com.redislabs.riot.cli.file;
import java.util.Locale;
import org.springframework.batch.item.file.FlatFileItemWriter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import picocli.CommandLine.Option;
@EqualsAndHashCode(callSuper = true)
@Accessors(fluent = true)
public @Data class FileWriterOptions extends FlatFileOptions {
@Option(names = "--append", description = "Append to file if it exists")
private boolean append;
@Option(names = "--force-sync", description = "Force-sync changes to disk on flush")
private boolean forceSync;
@Option(names = "--line-sep", description = "String to separate lines (default: system default)", paramLabel = "")
private String lineSeparator = FlatFileItemWriter.DEFAULT_LINE_SEPARATOR;
@Option(names = "--format", description = "Format string used to aggregate items", paramLabel = "")
private String format;
@Option(names = "--locale", description = "Locale", paramLabel = "")
private Locale locale = Locale.ENGLISH;
@Option(names = "--max-length", description = "Max length of the formatted string", paramLabel = "")
private Integer maxLength;
@Option(names = "--min-length", description = "Min length of the formatted string", paramLabel = "")
private Integer minLength;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy