Skip to content

enum Athena::Console::Output::Type #

Determines how a message should be printed.

When you output a message via ACON::Output::Interface#puts or ACON::Output::Interface#print, they also provide a way to set the output type it should be printed:

protected def execute(input : ACON::Input::Interface, output : ACON::Output::Interface) : ACON::Command::Status
  output.puts "Some Message", output_type: :raw

  ACON::Command::Status::SUCCESS
end

Members#

NORMAL = 0#

Normal output, with any styles applied to format the text.

RAW = 1#

Output style tags as is without formatting the string.

PLAIN = 2#

Strip any style tags and only output the actual text.

Methods#

#normal?#

View source

#plain?#

View source

#raw?#

View source