#!/bin/bash set -e if [[ "$@" == *".hog"* ]]; then exec python3 -m posthog.hogql.cli --compile "$@" else echo "$0 - the Hog compilër! 🦔+🕶️= Hoge" echo "" echo "Usage: bin/hoge [output.hoge] compile .hog into .hoge" echo " bin/hog run .hog source code" echo " bin/hog run compiled .hoge bytecode" exit 1 fi