Sha256: 5614c8163520fef4c021c85660b1666d2bf3703012d80590482b919ec8198670
Contents?: true
Size: 983 Bytes
Versions: 9
Compression:
Stored size: 983 Bytes
Contents
# frozen_string_literal: true module DevSuite module CLI class Main < Thor desc "tree DIRECTORY", "Prints the directory tree" method_option :depth, aliases: "-d", type: :numeric, desc: "Limit the depth of the directory tree displayed" method_option :skip_hidden, type: :boolean, default: false, desc: "Skip hidden files and directories" method_option :skip_types, type: :array, default: [], banner: "TYPE1 TYPE2", desc: "Exclude files of specific types" def tree(path = ".") execute_command(Commands::Tree, path, options: options) end desc "version", "Displays the version of the dev_suite gem" def version execute_command(Commands::Version) end private def execute_command(command_class, *args, **kargs) command_class.new.execute(*args, **kargs) rescue StandardError => e Utils::ErrorHandler.handle_error(e) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems