io.airlift.airline.help.CommandGroupUsageGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of airline Show documentation
Show all versions of airline Show documentation
Java library provided an annotation-based framework for parsing Git like command line structures
package io.airlift.airline.help;
import java.io.IOException;
import java.io.OutputStream;
import io.airlift.airline.model.CommandGroupMetadata;
import io.airlift.airline.model.GlobalMetadata;
/**
* Interface implemented by classes that can generate usage documentation for a command group
*/
public interface CommandGroupUsageGenerator {
/**
* Generate the help and output it on standard out
*
* @param global
* Global Metadata
* @throws IOException
*/
public abstract void usage(GlobalMetadata global, CommandGroupMetadata group) throws IOException;
/**
* Generate the help and output it to the stream
*
* @param global
* Global metadata
* @param out
* Stream to output to
* @throws IOException
*/
public abstract void usage(GlobalMetadata global, CommandGroupMetadata group, OutputStream output) throws IOException;
}