Projects / bootwitch-cli-code-excerpts-entry-point
Finding the toolkit
bootwitch-clidevtools-and-workflows
This is where the command starts. It finds the Bootwitch installation, loads the core library, and hands the arguments to bootwitch_main.
BOOTWITCH_BIN_DIR=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)
BOOTWITCH_HOME=$(CDPATH='' cd -- "$BOOTWITCH_BIN_DIR/.." && pwd)
# shellcheck source=../lib/bootwitch/core.sh
# Safety: the sourced file is anchored inside the resolved Bootwitch install;
# no path from project metadata or command-line input is executed here.
. "$BOOTWITCH_HOME/lib/bootwitch/core.sh"
# Dispatch only through the explicit command allowlist in bootwitch_main.
bootwitch_main "$@"
Read the full source · Snapshot 7bce28e8b273.