#!/bin/sh
action () {
    local shell_is_zsh="$( [ -z "${ZSH_VERSION}" ] && echo "false" || echo "true" )"
    local this_file="$( ${shell_is_zsh} && echo "${(%):-%x}" || echo "${BASH_SOURCE[0]}" )"
    local this_dir="$( cd "$( dirname "${this_file}" )" && pwd )"

    [ "$#" -eq 0 ] && {
        echo "ERROR: at least one file must be provided"
        return 1
    }

    cf_sandbox venv_columnar_dev ipython -i "${this_dir}/cf_inspect.py" "$@"
}

action "$@"
