You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
1.3 KiB
Bash
92 lines
1.3 KiB
Bash
2 years ago
|
#shellcheck shell=sh
|
||
4 years ago
|
|
||
2 years ago
|
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'
|
||
|
)"
|
||
|
}
|
||
|
|
||
1 month ago
|
_run_require() (
|
||
|
import=${1}
|
||
|
shift
|
||
|
fn=$(echo "${import}" | sed 's|/|_|g')
|
||
|
set -eu
|
||
|
. "${XDG_DATA_HOME}/buddy/include.sh"
|
||
|
require "${import}"
|
||
|
${fn} "$@"
|
||
1 year ago
|
)
|
||
|
|
||
1 month ago
|
add_date_prefix () (
|
||
|
_run_require add_date_prefix "$@"
|
||
|
)
|
||
|
|
||
|
command_installed () (
|
||
|
_run_require assert/command "$@"
|
||
10 months ago
|
)
|
||
|
|
||
5 months ago
|
gem_env () (
|
||
1 month ago
|
_run_require gem_env "$@"
|
||
5 months ago
|
)
|
||
4 months ago
|
|
||
1 month ago
|
get_bitrate () (
|
||
|
_run_require get_bitrate "$@"
|
||
4 months ago
|
)
|
||
5 months ago
|
|
||
1 month ago
|
get_create_date () (
|
||
|
date -r "$1" +"%F"
|
||
|
)
|
||
1 year ago
|
|
||
1 month ago
|
github_install_scripts () (
|
||
|
_run_require github/install_scripts "$@"
|
||
|
)
|
||
1 year ago
|
|
||
1 month ago
|
github_install_scripts_latest_releases () (
|
||
|
_run_require github/install_scripts_latest_releases "$@"
|
||
|
)
|
||
1 year ago
|
|
||
1 month ago
|
github_latest_release () (
|
||
|
_run_require github/latest_release "$@"
|
||
1 year ago
|
)
|
||
|
|
||
1 month ago
|
github_releases () (
|
||
|
_run_require github/releases "$@"
|
||
2 years ago
|
)
|
||
|
|
||
1 month ago
|
github_tags () (
|
||
|
_run_require github/tags "$@"
|
||
2 years ago
|
)
|
||
|
|
||
1 month ago
|
go_deps () (
|
||
|
_run_require go_deps "$@"
|
||
2 years ago
|
)
|
||
|
|
||
1 month ago
|
json_to_yaml () (
|
||
|
_run_require json_to_yaml "$@"
|
||
2 years ago
|
)
|
||
4 years ago
|
|
||
1 month ago
|
yaml_to_json () (
|
||
|
_run_require yaml_to_json "$@"
|
||
3 years ago
|
)
|
||
3 years ago
|
|
||
1 month ago
|
make_script () (
|
||
|
_run_require make_script "$@"
|
||
|
)
|
||
|
|
||
|
min_jpg () (
|
||
|
_run_require min_jpg "$@"
|
||
|
)
|
||
|
|
||
|
min_png () (
|
||
|
_run_require min_png "$@"
|
||
|
)
|
||
|
|
||
|
slugify () (
|
||
|
_run_require slugify "$@"
|
||
3 years ago
|
)
|