#!/usr/bin/env ruby require "mangos" require "highline/import" command = ARGV.first || "sync" root_path = Pathname.new(ARGV[1] || ".").realpath case command when "install" mangos = Mangos::Mangos.new(root_path) mangos.install when "update" mangos = Mangos::Mangos.new(root_path) mangos.update else puts "Unknown command #{command.inspect}" end