java.lang.Object
com.github.rvesse.airline.examples.io.ColorDemo<T>
All Implemented Interfaces:
ExampleRunnable
Direct Known Subclasses:
Colors256, ColorsBasic, ColorsTrue

public abstract class ColorDemo<T> extends Object implements ExampleRunnable
  • Constructor Details

    • ColorDemo

      public ColorDemo()
  • Method Details

    • openOutputStream

      protected abstract ColorizedOutputStream<T> openOutputStream()
    • getColors

      protected abstract T[] getColors()
    • run

      public int run()
      Description copied from interface: ExampleRunnable
      Runs the command and returns an exit code that the application should return
      Specified by:
      run in interface ExampleRunnable
      Returns:
      Exit code