1234567891011121314151617181920212223242526 |
- #! /bin/bash
- usage() {
- cat << EOF
- Usage: ${0##*/} [-h] <project>
- List a project's servers, with details
- -h Print this help
- EOF
- }
- while getopts h opt; do
- case $opt in
- h) usage; exit 0 ;;
- esac
- done
- shift $(( OPTIND - 1 ))
- if [[ $# -eq 0 ]]; then
- 2>&1 usage
- exit 1
- fi
- . ~/.os_helpers
- get_server_list_detailed "$1" | jq -r '.servers'
|