This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Bash completion for click command line interfaces. | |
Provides bash completion helpers for command-line interfaces. | |
""" | |
# batteries included | |
from __future__ import absolute_import | |
# third party |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
function _error() { | |
>&2 printf "\e[31mERROR: $@\e[00m\n" | |
exit 1 | |
} |