Class: Hackasm::CLI
- Inherits:
-
Thor
- Object
- Thor
- Hackasm::CLI
- Defined in:
- lib/hackasm/cli.rb
Overview
Handle the application command line parsing and the dispatch to various command objects
Constant Summary collapse
- Error =
Error raised by this runner
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#asm2binary(file) ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/hackasm/cli.rb', line 36 def asm2binary(file) if [:help] invoke :help, ['asm2binary'] else require_relative 'commands/asm2binary' Hackasm::Commands::Asm2Binary.new(file, ).execute end end |