module Icomoon::Cli::Exec

Public Class Methods

run(argv) click to toggle source
# File lib/icomoon/cli/exec.rb, line 12
def run(argv)
  command = argv.shift

  case command
  when 'init'
    Icomoon::Cli::Exec::Init.run(argv)
  when 'import'
    Icomoon::Cli::Exec::Import.run(argv)
  when 'help', nil
    Icomoon::Cli::Exec::Help.run(argv)
  when 'version', '--version', '-v'
    Icomoon::Cli.logs Icomoon::VERSION
  else
    Icomoon::Cli.logs "invalid command: #{command}"
  end
end