# Path: feet/config.py
# class RedisConfiguration(Configuration):
# class ServerConfiguration(Configuration):
# class MecabConfiguration(Configuration):
# class FeetConfiguration(Configuration):
#     CONF_PATHS = [
#         "/etc/feet.yaml",  # System configuration
#         os.path.expanduser("~/.feet.yaml"),  # User specific config
#         os.path.abspath("conf/feet.yaml"),  # Local configuration
#     ]
# 
# Path: feet/www/app.py
# def run(host, port, debug):
#     app = make_app()
#     app.listen(port)
#     logging.info('Feet server listening on port %d' % (port))
#     try:
#         tornado.ioloop.IOLoop.instance().start()
#     except KeyboardInterrupt:
#         logging.info('Feet server interrupted')


from commis import Command
from feet.config import settings
from feet.www.app import run
# -*- coding: utf8 -*-
# Launch feet server
#
# Author:   Romary Dupuis <romary.dupuis@altarika.com>
#
# Copyright (C) 2016 Romary Dupuis
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html



class RunCommand(Command):

    name = 'run'
    help = 'run the feet server application'
    args = {
        '--host': {
            'metavar': 'ADDR',
            'default': settings.server.host,
            'help': 'set the host to run the app on'
        },
        '--port': {
            'metavar': 'PORT',
            'type': int,

# Path: feet/config.py
# class RedisConfiguration(Configuration):
# class ServerConfiguration(Configuration):
# class MecabConfiguration(Configuration):
# class FeetConfiguration(Configuration):
#     CONF_PATHS = [
#         "/etc/feet.yaml",  # System configuration
#         os.path.expanduser("~/.feet.yaml"),  # User specific config
#         os.path.abspath("conf/feet.yaml"),  # Local configuration
#     ]
# 
# Path: feet/www/app.py
# def run(host, port, debug):
#     app = make_app()
#     app.listen(port)
#     logging.info('Feet server listening on port %d' % (port))
#     try:
#         tornado.ioloop.IOLoop.instance().start()
#     except KeyboardInterrupt:
#         logging.info('Feet server interrupted')


# Path: feet/commands/run.py
from commis import Command
from feet.config import settings
from feet.www.app import run

# -*- coding: utf8 -*-
# Launch feet server
#
# Author:   Romary Dupuis <romary.dupuis@altarika.com>
#
# Copyright (C) 2016 Romary Dupuis
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html



class RunCommand(Command):

    name = 'run'
    help = 'run the feet server application'
    args = {
        '--host': {
            'metavar': 'ADDR',
            'default': settings.server.host,
            'help': 'set the host to run the app on'
        },
        '--port': {
            'metavar': 'PORT',
            'type': int,

            'default': settings.server.port,