class Hipmost::CLI

Public Class Methods

run(command, args, options) click to toggle source
# File lib/hipmost.rb, line 9
def self.run(command, args, options)
  case command.to_sym
  when :public, :room, :rooms
    Hipmost::Cmds::Room.new(**options).run(args)
  when :private, :direct
    Hipmost::Cmds::Private.new(**options).run(args)
  else
    puts "Invalid command"
    exit 1
  end
end