Class: RubyCode::Views::Welcome
- Inherits:
-
Object
- Object
- RubyCode::Views::Welcome
- Defined in:
- lib/rubycode/views/welcome.rb
Overview
Displays welcome message when CLI starts
Class Method Summary collapse
Class Method Details
.build ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/rubycode/views/welcome.rb', line 9 def self.build pastel = Pastel.new TTY::Box.frame( width: 80, border: :thick, title: { top_left: " RubyCode v#{RubyCode::VERSION} " } ) do [ pastel.bold.cyan("AI Ruby/Rails Code Assistant"), "", "Built with: #{pastel.dim("Ollama + DeepSeek + TTY Toolkit")}", pastel.dim("─" * 76), "#{pastel.yellow("Commands:")} exit, quit, clear" ].join("\n") end end |