navi/cheats
2019-09-20 10:59:53 -03:00

28 lines
703 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
export DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
source "${DIR}/src/arg.sh"
source "${DIR}/src/cheat.sh"
source "${DIR}/src/docs.sh"
source "${DIR}/src/misc.sh"
source "${DIR}/src/selection.sh"
source "${DIR}/src/str.sh"
source "${DIR}/src/ui.sh"
source "${DIR}/src/main.sh"
##? Command cheatsheet tool
##?
##? Usage:
##? cheats [options]
##?
##? Options:
##? --print Prevent script execution [default: false]
##? --no-interpolation Prevent argument interpolation [default: false]
##? -c --cheat-folder <cheat-folder> Folder with cheatsheets
docs::eval "$@"
main "$@"