# Path: drift/utils.py
# def get_config(ts=None, tier_name=None, tenant_name=None):
#     """Wraps get_drift_config() by providing default values for tier, tenant and drift_app."""
#     # Hack: Must delay import this
#     # TODO: Stop using this function. Who is doing it anyways?
#     from drift.flaskfactory import load_flask_config
#     if current_app:
#         app_ts = current_app.extensions['driftconfig'].table_store
#         if ts is not app_ts:
#             log.warning("Mismatching table_store objects in get_config(): ts=%s, app ts=%s", ts, app_ts)
#         ts = app_ts
# 
#     conf = get_drift_config(
#         ts=ts,
#         tier_name=tier_name or get_tier_name(),
#         tenant_name=tenant_name or tenant_from_hostname,
#         drift_app=load_flask_config(),
#     )
#     return conf


import sys
import os
import os.path
import subprocess
import boto3
from click import echo
from six import print_
from six.moves import input
from drift.utils import get_config
# -*- coding: utf-8 -*-





def get_options(parser):
    parser.add_argument("service", help="Service or deployable to connect to", nargs='?')


def run_command(args):
    service = args.service

# Path: drift/utils.py
# def get_config(ts=None, tier_name=None, tenant_name=None):
#     """Wraps get_drift_config() by providing default values for tier, tenant and drift_app."""
#     # Hack: Must delay import this
#     # TODO: Stop using this function. Who is doing it anyways?
#     from drift.flaskfactory import load_flask_config
#     if current_app:
#         app_ts = current_app.extensions['driftconfig'].table_store
#         if ts is not app_ts:
#             log.warning("Mismatching table_store objects in get_config(): ts=%s, app ts=%s", ts, app_ts)
#         ts = app_ts
# 
#     conf = get_drift_config(
#         ts=ts,
#         tier_name=tier_name or get_tier_name(),
#         tenant_name=tenant_name or tenant_from_hostname,
#         drift_app=load_flask_config(),
#     )
#     return conf


# Path: drift/management/commands/ssh.py
import sys
import os
import os.path
import subprocess
import boto3
from click import echo
from six import print_
from six.moves import input
from drift.utils import get_config

# -*- coding: utf-8 -*-





def get_options(parser):
    parser.add_argument("service", help="Service or deployable to connect to", nargs='?')


def run_command(args):
    service = args.service

    conf = get_config()