You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored base_wrapper function into an executable called 'base-wrapper' that would be used in the shebang line of Base scripts
The contract that a base CLI needs to adhere to is this: 1. Use "#!/usr/bin/env base-wrapper" as the shebang line 2. Have three functions: base_describe - To print one line description of what the script does base_help - To show help main - The entry point to the script base-wrapper gives these features out of the box: - automatically handles -h / --help / -help option to retrieve help text - automatically handles --describe / -describe option to retrieve one line summary of the script - automatically handles --debug option to enable debugging - imports lib/stdlib.sh More helper functions and automatic options may be added in the future.
base_wrapper "$@" || { printf '%s\n' "ERROR: base environment not initialized; make sure you have sourced base_init.sh before invoking this script" >&2; exit 1; }
base_wrapper "$@" || { printf '%s\n' "ERROR: base environment not initialized; make sure you have sourced base_init.sh before invoking this script" >&2; exit 1; }
base_wrapper "$@" || { printf '%s\n' "ERROR: base environment not initialized; make sure you have sourced base_init.sh before invoking this script" >&2; exit 1; }
0 commit comments