3 ##############################################################################
5 ### generate-cassandra-drop-cql.sh
7 ### A script that generates the CQL commands of DROP for the Cassnadra init.
11 ### ./generate-cassandra-init-cql.sh cassandra-commands.json
15 ### Version 1.0 for OPENECOMP
18 ##############################################################################
22 RUN_PATH=$(cd "$(dirname "$0")" && pwd)
24 #### Functions - Start ####
25 usage() { echo "Usage: $0 <db-cql-json-file>, for example: $0 cassandra-commands.json" 1>&2; exit 1; }
30 $RUN_PATH/parse-json.py -t drop -f $1
33 #### Functions - End ####
36 if [ "$#" -lt 1 ] || [ "$#" -gt 1 ]; then