Class: IndexHtml::BaseCLI
- Inherits:
-
Thor
- Object
- Thor
- IndexHtml::BaseCLI
- Defined in:
- lib/index_html/cli.rb
Overview
TODO: this should be re-use from the ‘CodeLister’ module
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.shared_options ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/index_html/cli.rb', line 7 def self. method_option :base_dir, aliases: "-b", desc: "Base directory", default: Dir.pwd method_option :exts, aliases: "-e", desc: "List of extensions to search for", type: :array, default: [] method_option :inc_words, aliases: "-n", desc: "List of words to be included in the result if any", type: :array, default: [] method_option :exc_words, aliases: "-x", desc: "List of words to be excluded from the result if any", type: :array, default: [] method_option :ignore_case, aliases: "-i", desc: "Match case insensitively", type: :boolean, default: true method_option :recursive, aliases: "-r", desc: "Search for files recursively", type: :boolean, default: true end |