Sha256: ab1934de963324e1fd804e2fa6efe13566799873fdc8bfa95377446d2233a4f9

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

module Shomen

  # Command line interface. (YARD oriented for now).
  def self.cli(*argv)
    case cmd = argv.shift
    when 'server'
      require 'shomen/server'
    when 'tomdoc'
      require 'shomen/cli/tomdoc'
      CLI::TomDocCommand.run(*argv)
    when 'yard'
      require 'shomen/cli/yard'
      CLI::YARDCommand.run(*argv)
    when 'rdoc'
      require 'shomen/cli/rdoc'
      CLI::RDocCommand.run(*argv)
    else
      abort "error: unrecognized command - #{cmd}"
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shomen-0.1.1 lib/shomen/cli.rb
shomen-0.1.0 lib/shomen/cli.rb