bash import directive, like in Golang.
source "vendor/github.com/reconquest/import.bash/import.bash"
import:use "path/to/any/lib.bash"
import.bash will look into vendor directory and, if vendor missing, will try to clone it.
Then, file named same as last part of the import name will be sourced.
source "vendor/github.com/reconquest/import.bash/import.bash"
import:use "github.com/reconquest/opts.bash"
declare -a args
declare -A opts
opts:parse opts args -a -b: -- "${@}"
echo "-a: ${opts[-a]}"
echo "-b: ${opts[-b]}"
echo "args: ${args[@]}"
See reference at REFERENCE.md.