Skip to content
This repository
tree: ff62b0a90c
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 28 lines (22 sloc) 0.543 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/usr/bin/env bash

DEPRECATIONS=()

# Captures all deprecations in an internal array
#
__add_to_deprecations() {
  local _value="$1"
  local _version="$2"
  local _deprecation_message="${bldmgt}${_value}${txtrst} ${txtmgt}will be deprecated as of ${_version}${txtrst}\n"

  DEPRECATIONS+=("$_deprecation_message")
}

# Displays all previously captured deprecations
#
__display_deprecations() {
  if [[ ${#DEPRECATIONS[@]} != 0 ]]
  then
    echo ""
  fi

  for _deprecation in "${DEPRECATIONS[@]}"
  do
    echo -en "$_deprecation"
  done
}
Something went wrong with that request. Please try again.