# frozen_string_literal: true require "thor" module Boilercode module Commands class Dotfiles < Thor namespace :dotfiles desc "download", "Download dotfiles to home directory" method_option :help, aliases: "-h", type: :boolean, desc: "Display usage information" def download(*) if options[:help] invoke :help, ["download"] else require_relative "dotfiles/download" Boilercode::Commands::Dotfiles::Download.new(options).execute end end desc "find", "Find local dotfiles and upload to dotfiles folder in Boilercode Drive" method_option :help, aliases: "-h", type: :boolean, desc: "Display usage information" def find(*) if options[:help] invoke :help, ["find"] else require_relative "dotfiles/find" Boilercode::Commands::Dotfiles::Find.new(options).execute end end end end end