module CrinjaLint::GlobUtils
Overview
https://github.com/crystal-ameba/ameba/blob/master/src/ameba/glob_utils.cr
Helper module that is utilizes helpers for working with globs.
Extended Modules
Defined in:
crinja_lint/glob_utils.crInstance Method Summary
-
#expand(globs)
Expands globs.
-
#find_files_by_globs(globs)
Returns all files that match specified globs.
Instance Method Detail
def expand(globs)
#
Expands globs. Globs can point to files or even directories.
expand(["spec/*.cr", "src"]) # => all files in src folder + first level specs
def find_files_by_globs(globs)
#
Returns all files that match specified globs. Globs can have wildcards or be rejected:
find_files_by_globs(["**/*.cr", "!lib"])