github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/scripts/list-methods (about)

     1  #! /bin/bash --posix
     2  
     3  set -o nounset
     4  
     5  WGET='wget -q -O -'
     6  
     7  if [ -z "$(which wget)" ]; then
     8      WGET='curl'
     9  fi
    10  $WGET "http://$1/_goSRPC_/listMethods" && exit
    11  rc="$?"
    12  echo "Error getting list of methods"
    13  exit "$rc"