Class: Wandbox::CLI::Compiler

Inherits:
Thor::Group
  • Object
show all
Defined in:
lib/wandbox/cli/compiler.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



11
12
13
14
15
16
17
# File 'lib/wandbox/cli/compiler.rb', line 11

def execute
	name = compiler
	compiler = Wandbox::Compiler.from_compiler_name name
	return puts "Not found '#{name}'." unless compiler
	opts = options["options"] || ""
	puts compiler.to_stdio opts.split ","
end