# frozen_string_literal: true module Wayfarer module CLI class Runner < Thor def self.exit_on_failure? true end def self.loader # TODO: Raises if $PWD/app/jobs does not exist @loader ||= Zeitwerk::Loader.new.tap do |load| load.inflector = Zeitwerk::GemInflector.new(__FILE__) load.push_dir("#{Dir.pwd}/app/jobs") end end desc "version", "Print version" def version say Wayfarer::VERSION::STRING end desc "route", "Routing" subcommand "route", Wayfarer::CLI::Route desc "generate", "Generators" subcommand "generate", Wayfarer::CLI::Generate desc "job", "Jobs" subcommand "job", Wayfarer::CLI::Job end end end