#!/bin/bash

# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.


# utility shows the configuration file data


_PY3=/usr/bin/python3.6
s_dir=`${_PY3} -c 'import os.path ; import oci_utils.impl ; print (os.path.dirname(oci_utils.impl.__file__))' 2>/dev/null`
_PY_CMD=oci_show_config_main.py

for ARG in "$@"; do
  if [[ "${ARG}" == *"help"* ]]; then
     exec ${_PY3}  ${s_dir}/${_PY_CMD} "$@"
     exit 1
  fi
done

exec ${_PY3}  ${s_dir}/${_PY_CMD} "$@" | jq
