This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
Releases: cgrindel/bazel_shlib
Releases · cgrindel/bazel_shlib
Release 0.2.1
Release 0.2.0
- Added
contains_item
andcontains_item_sorted
toarrays.sh
.contains_item
: Searches for an item in a list of arguments. Returns 0 if found. Otherwise, returns -1.contains_item_sorted
: Same ascontains_item
, but the list items must be sorted. Only use if >40 list items.
- Added
execute_binary
rule. Encapsulates the execution of a binary target with a set of arguments in a single executable target.
Release 0.1.0
- Added
arrays.sh
sort_items
: Sorts the arguments and outputs a unique and sorted list with each item on its own line.print_by_line
: Prints the arguments with each argument on its own line.join_by
: Joins the arguments by the provided separator.
- Added
assertions.sh
fail
: Fail a test with the specified message.assert_equal
: Asserts that the actual value equals the expected value.
- Added
files.sh
upsearch
: Recursively searches for a file starting from the current directory up to the root of the filesystem.
- Added
messages.sh
exit_with_msg
: Outputs a message to stderr and exits.
- Added
paths.sh
normalize_path
: Normalizes the path echoing the fully-qualified path.