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

io.airlift.airline.help.CommandGroupUsageGenerator Maven / Gradle / Ivy

Go to download

Java library provided an annotation-based framework for parsing Git like command line structures

There is a newer version: 3.0.0
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy