#!/usr/bin/env bash

# Enable auto-completion.

if HOOK=$({{executable}} _completion -g -p {{executable}}); then
  # See https://github.com/stecman/symfony-console-completion/#zero-config-use
  eval $(echo "$HOOK")
  echo "$HOOK" | source /dev/stdin
  source <(echo "$HOOK") 2>/dev/null
fi
