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

org.unix4j.unix.echo.EchoOptionSets Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
package org.unix4j.unix.echo;

import org.unix4j.unix.Echo;

/**
 * Options for the {@link Echo echo} command with the 
 * the following options: 
 * 

*

* *
{@code -n}  {@code --noNewline} Do not print the trailing newline character(s).
*

* This class serves as entry point to every possible set of {@code echo} options * defined as an enum constant. With this explicit expansion of all possible * option combinations, options can be passed to the command in a very compact * form, such as: *

 * echo(Echo.Options.n, ...);
 * 
*/ public final class EchoOptionSets { /** * The singleton instance. */ public static final EchoOptionSets INSTANCE = new EchoOptionSets(); /** * Option {@code "-n"}: Do not print the trailing newline character(s). *

* The option {@code "-n"} is equivalent to the {@code "--}{@link #noNewline noNewline}{@code "} option. */ public final EchoOptionSet_n n = EchoOptionSet_n.Active_n; /** * Option {@code "--noNewline"}: Do not print the trailing newline character(s). *

* The option {@code "--noNewline"} is equivalent to the {@code "-}{@link #n n}{@code "} option. */ public final EchoOptionSet_n noNewline = EchoOptionSet_n.Active_n_long; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy