#!/usr/bin/env ruby # frozen_string_literal: true require "bundler/setup" require "mona" require "thor" class MonaCli < Thor desc "mona cd PACKAGE", "go to PACKAGE" def cd(package) puts "cd #{Mona.packages(File.expand_path(".")).find(package.to_sym).root_path}" end end MonaCli.start(ARGV)