source_env_file() { if [ -f "${1}" ]; then return fi eval "$( grep -v '^\s*\#' "${1}" | grep -v '^\s*$' | sed 's/^\s*export//g' | sed 's/^/export /g' )" } _run_require() ( import=${1} shift set -euo pipefail source "${XDG_DATA_HOME}/buddy/include.bash" require "${import}" "${import//\//_}" "$@" ) add_date_prefix() ( _run_require add_date_prefix "$@" ) command_installed() ( _run_require assert/command "$@" ) gem_env () ( _run_require gem_env "$@" ) get_bitrate() ( _run_require get_bitrate "$@" ) get_create_date() ( date -r "$1" +"%F" ) github_install_scripts () ( _run_require github/install_scripts "$@" ) github_install_scripts_latest_releases() ( _run_require github/install_scripts_latest_releases "$@" ) github_latest_release() ( _run_require github/latest_release "$@" ) github_releases() ( _run_require github/releases "$@" ) github_tags() ( _run_require github/tags "$@" ) go_deps() ( _run_require go_deps "$@" ) json_to_yaml() ( _run_require json_to_yaml "$@" ) yaml_to_json() ( _run_require yaml_to_json "$@" ) make_script() ( _run_require make_script "$@" ) min_jpg() ( _run_require min_jpg "$@" ) min_png() ( _run_require min_png "$@" ) slugify() ( _run_require slugify "$@" ) function min-jpg { min_jpg "${@}" } function min-png { min_png "${@}" } function get-create-date { get_create_date "${@}" } function add-date-prefix { add_date_prefix "${@}" } # vim: filetype=bash