execute.sh
 1  #!/bin/bash
 2  
 3  # The execute.sh file can be used to call any helper functions directly
 4  # from the command line. For example:
 5  #   $ ./execute.sh compose-up
 6  
 7  # DIR is set to the directory of this script.
 8  DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 9  
10  source "$DIR/.env"
11  source "$DIR/compose.sh"
12  source "$DIR/network.sh"
13  
14  CMD=$1
15  shift
16  $CMD "$@"