class Hackasm::CLI
Handle the application command line parsing and the dispatch to various command objects
@api public
Constants
- Error
Error
raised by this runner
Public Instance Methods
asm2binary(file)
click to toggle source
# File lib/hackasm/cli.rb, line 36 def asm2binary(file) if options[:help] invoke :help, ['asm2binary'] else require_relative 'commands/asm2binary' Hackasm::Commands::Asm2Binary.new(file, options).execute end end
version()
click to toggle source
# File lib/hackasm/cli.rb, line 15 def version require_relative 'version' puts "v#{Hackasm::VERSION}" end
vm2asm(base_path)
click to toggle source
# File lib/hackasm/cli.rb, line 24 def vm2asm(base_path) if options[:help] invoke :help, ['vm2asm'] else require_relative 'commands/vm2asm' Hackasm::Commands::Vm2Asm.new(base_path, options).execute end end