Enkaidu::CLI::Main
Inherits Reference < Object
Main is the entry point for executing the application, managing initialization and execution flow.
Constants
ALT_KEY = "Alt"
PROMPT_PRERELEASE = "CAUTION! #{VERSION} is a PRE-RELEASE in development.".colorize(:red)
WELCOME_FIRST_COLOR = "│ #{"Enkaidu".colorize.bold} #{VERSION} │ #{"/help".colorize(:yellow)} for commands │ #{"#{ALT_KEY}-Enter".colorize(:yellow)} multi-line input │ #{"Tab".colorize(:yellow)} auto-complete"
WELCOME_FIRST_LEFT = "│ Enkaidu #{VERSION} │ /help for commands │ #{ALT_KEY}-Enter multi-line input │ Tab auto-complete"
WELCOME_FIRST_RIGHT = (" " * ((WELCOME_WIDTH - WELCOME_FIRST_LEFT.size) + 2)) + '│'
WELCOME_QUIET_BAR = "─" * ((WELCOME_FIRST_LEFT.size + WELCOME_FIRST_RIGHT.size) - 2)
WELCOME_SECOND_LEFT = "│ Welcome to your second-in-command(-line) agentic assistant for AI that YOU control!"
WELCOME_SECOND_RIGHT = (" " * ((WELCOME_WIDTH - WELCOME_SECOND_LEFT.size) + 2)) + '│'
WELCOME_WIDTH = [WELCOME_FIRST_LEFT.size, WELCOME_SECOND_LEFT.size].max
Constructors
new(opts : Enkaidu::CLI::Options)
SourceInstance methods
quiet?
Sourcerun
Source