Files
timatifey b4c0fb0a36 flags for hash files
flags for enabling checking & saving hash files
1) flags --savehash --checkhash
2) kotlin dsl update config for python generator
3) update README.md
2022-09-16 15:06:12 +03:00

21 lines
469 B
Bash
Executable File

#!/bin/bash
scriptDir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $scriptDir
config=$1
schemaDir=$2
outputDir=$3
optionalArgs=""
if [ "$#" -eq 4 ]; then
optionalArgs=$4
fi
if [ "$#" -eq 5 ]; then
optionalArgs="$4 $5"
fi
echo Executing api_generator with [config = $config] [schemaDir = $schemaDir] [outputDir = $outputDir] [optionalArgs = $optionalArgs]
python3 -m api_generator -c $config -s $schemaDir -o $outputDir $optionalArgs