Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.aspect.build/llms.txt

Use this file to discover all available pages before exploring further.

Documentation for @bazel_lib@v3.2.0 View source
Public API

Function: glob_match

Test if the passed path matches the glob expression. * A single asterisk stands for zero or more arbitrary characters except for the the path separator / if match_path_separator is False ? The question mark stands for exactly one character except for the the path separator / if match_path_separator is False ** A double asterisk stands for an arbitrary sequence of 0 or more characters. It is only allowed when preceded by either the beginning of the string or a slash. Likewise it must be followed by a slash or the end of the pattern.

Parameters

expr
name
required
the glob expression
path
name
required
the path against which to match the glob expression
match_path_separator
name
default:"False"
whether or not to match the path separator ’/’ when matching * and ? expressions
Returns: True if the path matches the glob expression

Function: is_glob

Determine if the passed string is a global expression

Parameters

expr
name
required
the potential glob expression
Returns: True if the passed string is a global expression