Merge pull request #116 into master
7441817container: completion.bash: set xtrace if debug enabled (Aaron Fiore)e9e2ed6container: finance.bash: set xtrace if debug enabled (Aaron Fiore)5684d94client: completion.bash: set xtrace if debug enabled (Aaron Fiore)4302ac2client: docker.bash: set xtrace if debug enabled (Aaron Fiore)
This commit was merged in pull request #116.
This commit is contained in:
@@ -17,6 +17,14 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
# WARNING: because of completion, the docker-finance environment file
|
||||
# is never read. Ergo, for debugging, you'll need to run the following:
|
||||
#
|
||||
# `export DOCKER_FINANCE_DEBUG=true && . ~/.bashrc`
|
||||
#
|
||||
# and then proceed to call `docker-finance` / `dfi` with your commands.
|
||||
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
||||
|
||||
# If not yet installed, gracefully exit
|
||||
if ! hash docker &>/dev/null; then
|
||||
exit 0
|
||||
|
||||
@@ -156,6 +156,7 @@ function main()
|
||||
#
|
||||
|
||||
lib_docker::docker "$@" || lib_utils::die_usage "$_usage"
|
||||
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
||||
|
||||
#
|
||||
# Command facade
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
||||
[ -z "$DOCKER_FINANCE_CONTAINER_FLOW" ] && exit 1
|
||||
|
||||
function docker-finance::completion()
|
||||
|
||||
@@ -92,6 +92,7 @@ function main()
|
||||
#
|
||||
|
||||
lib_finance::finance "$@" || lib_utils::die_usage "$_usage"
|
||||
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
|
||||
|
||||
#
|
||||
# Facade commands
|
||||
|
||||
Reference in New Issue
Block a user