Sha256: 04b6b9d6ec927157156b6890a5431bbf88574c412ada5a02c56bd7b0357e5266

Contents?: true

Size: 1.4 KB

Versions: 7

Compression:

Stored size: 1.4 KB

Contents

module AgileUtils
  module Options
    BASE_DIR = [
      :base_dir,
      { type:    :string,
        aliases: "-b",
        desc:    "Base directory",
        default: Dir.pwd
      }
    ]

    EXTS = [
      :exts,
      { type: :array,
        aliases: "-e",
        desc: "List of extensions to search for",
        default: []
      }
    ]

    NON_EXTS = [
      :non_exts,
      { type: :array,
        aliases: "-f",
        desc: "List of files without extension to search for",
        default: [] }
    ]

    INC_WORDS = [
      :inc_words,
      { type: :array,
        aliases: "-n",
        desc: "List of words in the filename to be included with the result if any",
        default: []
      }
    ]

    EXC_WORDS = [
      :exc_words,
      { type: :array,
        aliases: "-x",
        desc: "List of words in the filename to be excluded from the result if any",
        default: []
      }
    ]

    IGNORE_CASE = [
      :ignore_case,
      { type: :boolean,
        aliases: "-i",
        desc: "Ignore the case in the input filename",
        default: true
      }
    ]

    RECURSIVE = [
      :recursive,
      { type: :boolean,
        aliases: "-r",
        desc: "Search for files recursively",
        default: true
      }
    ]

    VERSION = [
      :version,
      { type: :boolean,
        aliases: "-v",
        desc: "Display version information",
        default: false
      }
    ]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
agile_utils-0.3.2 lib/agile_utils/base_option.rb
agile_utils-0.3.1 lib/agile_utils/base_option.rb
agile_utils-0.3.0 lib/agile_utils/base_option.rb
agile_utils-0.2.3 lib/agile_utils/base_option.rb
agile_utils-0.2.2 lib/agile_utils/base_option.rb
agile_utils-0.2.1 lib/agile_utils/base_option.rb
agile_utils-0.2.0 lib/agile_utils/base_option.rb