Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Releases: cgrindel/bazel_shlib

Release 0.2.1

02 Dec 18:32
eb1eba2
Compare
Choose a tag to compare

What's Changed

  • Added the ability to pass additional arguments to execute_binary targets. by @cgrindel in #5
  • Fixed issues with embedding values with strings using execute_binary. by @cgrindel in #5.

Full Changelog: v0.2.0...v0.2.1

Release 0.2.0

27 Nov 21:59
0dfa8d2
Compare
Choose a tag to compare
  • Added contains_item and contains_item_sorted to arrays.sh.
    • contains_item: Searches for an item in a list of arguments. Returns 0 if found. Otherwise, returns -1.
    • contains_item_sorted: Same as contains_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

17 Nov 00:14
e40ebea
Compare
Choose a tag to compare
  • 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.