Class: RubyNative::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_native/cli.rb,
lib/ruby_native/cli/preview.rb

Defined Under Namespace

Classes: Preview

Class Method Summary collapse

Class Method Details

.start(argv) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/ruby_native/cli.rb', line 5

def self.start(argv)
  command = argv.shift
  case command
  when "preview"
    RubyNative::CLI::Preview.new(argv).run
  else
    puts "Usage: ruby_native <command>"
    puts ""
    puts "Commands:"
    puts "  preview    Start a tunnel and display a QR code"
  end
end