#!/usr/bin/env bash

# Can't proceed without an API token.
if [ -z "${GITHUB_ACCESS_TOKEN}" ]; then
  echo 'cannot continue without access token.'
  exit 1
fi

# Set the github username. Used in repo urls
if [ -z "${ORCH_GITHUB_USER}" ]; then
  echo 'Setup'
  read -r -p 'Github username: ' ORCH_GITHUB_USER
fi

# Add commands to .bash_profile?
# TODO: Better way of handling making these available?
echo "export ORCH_GITHUB_USER=${ORCH_GITHUB_USER}"
