#!/bin/sh -e

printed="no"

# print header banner
print_head() {
  if [ "${printed}" = "yes" ]; then
    return
  fi
  printf '┏━(\033[1;31mMessage from dev\033[00m)\n'
  printf '┃\n'
  printed="yes"
}

# print footer
print_tail() {
  if [ "${printed}" = "no" ]; then
    return
  fi
  printf '┗━\n'
}

old="$1"
new="$2"

print_head
cat <<END
┃ The command ${old} is deprecated. Please use ${new} instead.
┃
END

print_tail
