Class: Aocli::Cli
- Inherits:
-
Object
- Object
- Aocli::Cli
- Defined in:
- lib/aocli/cli.rb
Instance Method Summary collapse
-
#initialize ⇒ Cli
constructor
A new instance of Cli.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Cli
Returns a new instance of Cli.
5 6 7 8 |
# File 'lib/aocli/cli.rb', line 5 def initialize @options = Aocli::Config.load_config @prompt = TTY::Prompt.new end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/aocli/cli.rb', line 10 def run prompt_for_command # Aocli::Commands::StartDay # Aocli::Commands::SaveCookie # Aocli::Commands::RemoveCookie # Aocli::Commands::SetTemplatePath # Aocli::Commands::RemoveTemplatePath [:command].constantize.run!() end |