add some new files and services add hwtools that shows the current and last GWs - not yet included the user stats (if any available)
61 lines
3.8 KiB
Bash
61 lines
3.8 KiB
Bash
for d in $(find . -maxdepth 1 -type d -exec echo {} \;); do
|
|
if [[ "${d}" == "." ]]; then continue; fi
|
|
if [[ "${d}" == ".." ]]; then continue; fi
|
|
echo ">> ${d}"
|
|
for mmmm in $(find "${d}/" -maxdepth 1 -type f ! -name "*.min.json" -exec echo {} \;); do
|
|
output=$(echo "${mmmm}" | rev | cut -d"." -f2- | rev)
|
|
jq -c '.' "${mmmm}" > "${output}.min.json"
|
|
done
|
|
files=$(find "${d}/" -maxdepth 1 -type f -name "*.min.json" -exec echo {} \;)
|
|
jq -nRc '[inputs|[{"name":(input_filename),"source":.}]]|add' ${d}/*.min.json >"${d}_merged.json"
|
|
done
|
|
jq -nc '[inputs|[{"topLevelName":(input_filename),"samples":.}]]|add' ./*_merged.json > "_master.json"
|
|
jq -nc '{ "userState":{ "visits":8,"copies":0},"optionsPad":{ "language":"Go","options":{ "Swift":{ "inferMaps":true,"inferEnums":true,"inferUuids":true,"inferDateTimes":true,"inferIntegerStrings":true,"inferBooleanStrings":true,"combineClasses":true,"ignoreJsonRefs":true,"allPropertiesOptional":false,"rendererOptions":{ "just-types":false,"struct-or-class":"struct","density":"dense","initializers":false,"coding-keys":true,"access-level":"internal","url-session":false,"alamofire":false,"support-linux":false,"type-prefix":"","protocol":"none","acronym-style":"pascal","objective-c-support":false,"swift-5-support":false,"multi-file-output":false,"mutable-properties":false}},"C#":{ "inferMaps":true,"inferEnums":true,"inferUuids":true,"inferDateTimes":true,"inferIntegerStrings":false,"inferBooleanStrings":true,"combineClasses":true,"ignoreJsonRefs":true,"allPropertiesOptional":true,"rendererOptions":{ "namespace":"DailyChanceGlobal.Models","csharp-version":"6","density":"normal","array-type":"array","number-type":"decimal","features":"complete","check-required":false,"any-type":"dynamic","base-class":"Object"}},"Go":{ "inferMaps":true,"inferEnums":false,"inferUuids":false,"inferDateTimes":true,"inferIntegerStrings":true,"inferBooleanStrings":true,"combineClasses":true,"ignoreJsonRefs":true,"allPropertiesOptional":false,"rendererOptions":{ "just-types":false,"package":"models","multi-file-output":false,"just-types-and-package":true}}}},"sourcePad":{ "sample":"music.json","name":"Welcome","sourceType":"Multiple JSON","sources":.,"expandedNodes":[14,13,12,11,10,6,5,4,3,2,1,0],"selectedNode":8},"layout":{ "displayOptions":true}}' _master.json > __all.json
|
|
|
|
|
|
|
|
|
|
|
|
for d in $(find . -maxdepth 1 -type d -exec echo {} \;); do
|
|
if [[ "${d}" == "." ]]; then continue; fi
|
|
if [[ "${d}" == ".." ]]; then continue; fi
|
|
echo ">> ${d}"
|
|
jq -nc '[inputs|[{"name":(input_filename),"source":.}]]|add' ${d}/*.min.json >"${d}_merged.json"
|
|
done
|
|
jq -nc '[inputs|[{"topLevelName":(input_filename),"samples":.}]]|add' ./*_merged.json > "_master.json"
|
|
|
|
|
|
|
|
for d in $(find . -maxdepth 1 -type d -exec echo {} \;); do
|
|
if [[ "${d}" == "." ]]; then continue; fi
|
|
if [[ "${d}" == ".." ]]; then continue; fi
|
|
echo ">> ${d}"
|
|
for mmmm in $(find "${d}/" -maxdepth 1 -type f ! -name "*.min.json" -exec echo {} \;); do
|
|
output=$(echo "${mmmm}" | rev | cut -d"." -f2- | rev)
|
|
jq -c '.' "${mmmm}" > "${output}.min.json"
|
|
done
|
|
files=$(find "${d}/" -maxdepth 1 -type f -name "*.min.json" -exec echo {} \;)
|
|
jq -sc 'flatten' ${d}/*.min.json >"${d}_merged.json"
|
|
done
|
|
jq -nc '[inputs|[{"topLevelName":(input_filename),"theLevelData":.}]]|add' ./*_merged.json > "_master.json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for d in $(find . -maxdepth 2 -type f -exec echo {} \;); do
|
|
if [[ "${d}" == "." ]]; then continue; fi
|
|
if [[ "${d}" == ".." ]]; then continue; fi
|
|
echo ">> ${d}"
|
|
gron $d | grep
|
|
done
|
|
|
|
for d in $(find . -maxdepth 1 -type d -exec echo {} \;); do
|
|
if [[ "${d}" == "." ]]; then continue; fi
|
|
if [[ "${d}" == ".." ]]; then continue; fi
|
|
echo ">> ${d}"
|
|
quicktype --no-combine-classes -l go -t qtmodels --package qtmodels -s json --out ../_go3/${d}.go --debug all ${d}
|
|
done |