# -*- coding: utf-8 -*-
from __future__ import print_function

import sys

import click
from syncano.exceptions import SyncanoException
from syncano_cli.commands import top_level
from syncano_cli.config_commands.commands import top_config
from syncano_cli.custom_sockets.commands import top_sockets
from syncano_cli.execute.commands import top_execute
from syncano_cli.hosting.commands import top_hosting
from syncano_cli.parse_to_syncano.commands import top_migrate
from syncano_cli.sync.commands import top_sync

ACCOUNT_KEY = ''

cli = click.CommandCollection(
    sources=[
        top_config,
        top_execute,
        top_level,
        top_hosting,
        top_migrate,
        top_sync,
        top_sockets,
    ])


def main():
    try:
        cli(obj={})
    except SyncanoException as error:
        click.echo(error)
        sys.exit(1)


if __name__ == "__main__":
    main()

# -*- coding: utf-8 -*-
from __future__ import print_function

import sys

import click
from syncano.exceptions import SyncanoException
from syncano_cli.commands import top_level
from syncano_cli.config_commands.commands import top_config
from syncano_cli.custom_sockets.commands import top_sockets
from syncano_cli.execute.commands import top_execute
from syncano_cli.hosting.commands import top_hosting
from syncano_cli.parse_to_syncano.commands import top_migrate
from syncano_cli.sync.commands import top_sync

ACCOUNT_KEY = ''

cli = click.CommandCollection(
    sources=[
        top_config,
        top_execute,
        top_level,
        top_hosting,
        top_migrate,
        top_sync,
        top_sockets,
    ])


def main():
    try:
        cli(obj={})
    except SyncanoException as error:
        click.echo(error)
        sys.exit(1)

remove __name__ == '__main__'