# frozen_string_literal: true require 'hobgoblin' require 'thor' module Hobgoblin class CLI < Thor include Thor::Actions class_option 'server', type: :string, desc: 'URL for the Bridge Troll server', required: true desc 'upload ', 'Uploads a local file to the Bridge Troll bucket' long_desc <<-DESC Upload sends a local file to the remote Bridge Troll bucket with the path specified by . DESC def upload(source, remote_path) require 'hobgoblin/cli/upload' Upload.new(source, remote_path, options).run end desc 'download ', 'Downloads a remote file from the Bridge Troll bucket' long_desc <<-DESC Download pulls a remote file to the remote Bridge Troll bucket with the path specified by . DESC def download(remote_source, path) require 'hobgoblin/cli/download' Download.new(remote_source, path, options).run end end end