dugout-> navigation_methods.dugout
Provide default navigation methods
#!/bin/sh
###############################################################################
## COPYRIGHT (C) 2022-2024 NEW ENTITY OPERATIONS INC.
## CREATED: 2022/10/16
## INSTANCE: navigation_methods.dugout
## MODIFIED: 2024/01/01
## OVERVIEW: Provide default navigation methods
## HISTORY: VERSION 1.4
## -> VERSION 1.0 (2022/10/16) Development
## -> VERSION 1.1 (2023/11/18)
## -> VERSION 1.2 (2023/12/17)
## -> VERSION 1.3 (2023/12/28)
## -> VERSION 1.4 (2024/01/01) Production
###############################################################################
## NAVIGATION_*
###############################################################################
## Source the wrappers
. "$wrappers_generic"
NAVIGATION_MOCK_FAILURE() {
if [ -d "/THIS_DIR_WILL_FAIL_TEST" ]; then
perform_tree_walk "/THIS_DIR_WILL_FAIL_TEST"
else
alert_location_not_found "/THIS_DIR_WILL_FAIL_TEST"
fi
}
NAVIGATION_CODE() {
if [ -d "${XA_JUPYTER}" ]; then
perform_tree_walk "${XA_JUPYTER}"
else
alert_location_not_found "${XA_JUPYTER}"
fi
}
NAVIGATION_HOME() {
if [ -d "/home/${USER}" ]; then
perform_tree_walk "/home/${USER}"
else
alert_location_not_found "${LOCATION_OPERATOR_HOME}"
fi
}
NAVIGATION_IPDVC() {
if [ -d "${UNIVERSE_FILTER}" ]; then
perform_tree_walk "${UNIVERSE_FILTER}"
else
alert_location_not_found "${UNIVERSE_FILTER}"
fi
}
NAVIGATION_LIBRARY() {
if [ -d "${PATH_LIBRARY}" ]; then
perform_tree_walk "${PATH_LIBRARY}"
else
alert_location_not_found "${PATH_LIBRARY}"
fi
}
NAVIGATION_OPENPACKAGER() {
if [ -d "${PATH_OPENPACKAGER_CODE}" ]; then
perform_tree_walk "${PATH_OPENPACKAGER_CODE}"
else
alert_location_not_found "${PATH_OPENPACKAGER_CODE}"
fi
}
NAVIGATION_TRINE() {
if [ -d "${PATH_TRINE}" ]; then
perform_tree_walk "${PATH_TRINE}"
else
alert_location_not_found "${PATH_TRINE}"
fi
}
NAVIGATION_WIKI() {
if [ -d "${PATH_TRINE}${PATH_RING}${PATH_ENTITY}" ]; then
perform_tree_walk "${PATH_TRINE}${PATH_RING}${PATH_ENTITY}"
else
alert_location_not_found "${PATH_TRINE}${PATH_RING}${PATH_ENTITY}"
fi
}