Sha256: 3c09348185f50394521552a3f3dbe26437407a2f46e6affc44f7d28d6d6bba8b

Contents?: true

Size: 893 Bytes

Versions: 1

Compression:

Stored size: 893 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
require 'thor'
require 'thor/group'
require 'artoo/robot'
require 'artoo/commands/generate'
require 'artoo/commands/connect'
require 'artoo/commands/install'

Celluloid.logger = nil

module CLI
  class Root < Thor
    include Thor::Actions
    
    desc 'version', 'Displays the current version'
    def version
      say Artoo::VERSION
    end

    desc "console ROBOT", "Run a robot using the Robi console"
    def console(robot)
      run("robi #{robot}")
    end

    desc "generate SUBCOMMAND ...ARGS", "Generates a new robot or adaptor"
    subcommand "generate", Artoo::Commands::Generate

    desc "connect SUBCOMMAND ...ARGS", "Connects to device"
    subcommand "connect", Artoo::Commands::Connect

    desc "install SUBCOMMAND ...ARGS", "Installs utility programs"
    subcommand "install", Artoo::Commands::Install
  end
end

CLI::Root.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
artoo-1.0.0.rc2 bin/artoo