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

import flask_script as script

from whyis import commands

from whyis.app_factory import app_factory

from whyis.config_utils import import_config_module


class Manager(script.Manager):
    def __init__(self):
        script.Manager.__init__(self, app_factory)

        config = import_config_module()
        self.add_option("-n", "--name", dest="app_name", required=False, default=config.project_name)
        self.add_option("-c", "--config", dest="config", required=False, default=config.Dev)
        self.add_command("configure", commands.Configure())
        self.add_command("createuser", commands.CreateUser())
        self.add_command("listroutes", commands.ListRoutes())
        self.add_command("interpret", commands.RunInterpreter())
        self.add_command("load", commands.LoadNanopub())
        self.add_command("retire", commands.RetireNanopub())
        self.add_command("runserver", commands.WhyisServer())
        self.add_command("test", commands.Test())
        self.add_command("testagent", commands.TestAgent())
        self.add_command("updateuser", commands.UpdateUser())
        self.add_command("uninstallapp", commands.UninstallApp())

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

import flask_script as script

from whyis import commands

from whyis.app_factory import app_factory

from whyis.config_utils import import_config_module


class Manager(script.Manager):
    def __init__(self):
        script.Manager.__init__(self, app_factory)

        config = import_config_module()
        self.add_option("-n", "--name", dest="app_name", required=False, default=config.project_name)
        self.add_option("-c", "--config", dest="config", required=False, default=config.Dev)
        self.add_command("configure", commands.Configure())
        self.add_command("createuser", commands.CreateUser())
        self.add_command("interpret", commands.ListRoutes())
        self.add_command("list_routes", commands.ListRoutes())
        self.add_command("load", commands.LoadNanopub())
        self.add_command("retire", commands.RetireNanopub())
        self.add_command("runserver", commands.WhyisServer())
        self.add_command("test", commands.Test())
        self.add_command("test_agent", commands.TestAgent())
        self.add_command("updateuser", commands.UpdateUser())
        self.add_command("uninstall_app", commands.UninstallApp())

Revert "Made commands consistent on use of underscores. Re-enabled 'interpret' command that had been misplaced."
Revert "Made commands consistent on use of underscores. Re-enabled 'interpret' command that had been misplaced."

This reverts commit 7827598d1060442570685e94633093c550ce7ff2.
