Manage

You can create your command for command line interface noseapp-manage.

Usage:

noseapp-manage <command name> <command args> <command kwargs> [options]

Create my manage.py

Create manage.py file. Run nosepp-manage command in context of directory containing your manage file.

Create and register command

from noseapp.manage import register_command


def my_command():
    """
    Doc for help
    """
    print 'Hello World!'


register_command('hello_world', my_command)

To run:

noseapp-manage hello_world
# or
python2.7 -m noseapp.manage hello_world

Command arguments

def my_command(*args, **kwargs):
    print 'Args: ', args
    print 'Kwargs: ', kwargs

To run:

noseapp-manage my_command arg1, arg2, param=1

Usage help

Common:

noseapp-manage help

For command:

noseapp-manage help command