Ejemplo n.º 1
0
def angular_service():
    template_dir = _template_dir('angular_service')
    target_dir = os.path.join(os.curdir,'static','js')
    if not os.path.exists(target_dir):
        os.makedirs(target_dir)
    list_questions = False
    non_interactive = False
    args = [template_dir,'-O',target_dir,'-v','-w']
    cli.main(args)
Ejemplo n.º 2
0
def angular_service():
    template_dir = _template_dir('angular_service')
    target_dir = os.path.join(os.curdir,'static','js')
    if not os.path.exists(target_dir):
        os.makedirs(target_dir)
    list_questions = False
    non_interactive = False
    args = [template_dir,'-O',target_dir,'-v','-w']
    cli.main(args)
Ejemplo n.º 3
0
def run_mrbob(template_dir,testing):
    if testing:
        target_dir = './testing'
    else:
        target_dir = os.curdir
    if target_dir == os.curdir:
        if not prompt_bool('not testing, are you sure you want to continue...'):
            sys.exit(0)
    list_questions = False
    non_interactive = False
    args = [template_dir,'-O',target_dir,'-v','-w']
    cli.main(args)
Ejemplo n.º 4
0
def add_blueprint(testing=False):
    template_dir = os.path.join(MRBOB_TEMPLATE_DIR,'blueprint')
    if testing:
        target_dir = './testing'
    else:
        target_dir = os.curdir
    if target_dir == os.curdir:
        if not prompt_bool('not testing, are you sure you want to continue...'):
            sys.exit(0)
    list_questions = False
    non_interactive = False
    args = [template_dir,'-O',target_dir,'-v','-w']
    cli.main(args)
Ejemplo n.º 5
0
def add_blueprint(testing=False):
    template_dir = _template_dir('blueprint')
    if testing:
        target_dir = './testing'
    else:
        target_dir = os.curdir
    if target_dir == os.curdir:
        if not prompt_bool('not testing, are you sure you want to continue...'):
            sys.exit(0)
    list_questions = False
    non_interactive = False
    args = [template_dir,'-O',target_dir,'-v','-w']
    cli.main(args)
Ejemplo n.º 6
0
def run_mrbob(template_dir, testing):
    if testing:
        target_dir = './testing'
    else:
        target_dir = os.curdir
    if target_dir == os.curdir:
        if not prompt_bool(
                'not testing, are you sure you want to continue...'):
            sys.exit(0)
    list_questions = False
    non_interactive = False
    args = [template_dir, '-O', target_dir, '-v', '-w']
    cli.main(args)
Ejemplo n.º 7
0
def start_project(testing=False):
    template_dir = os.path.join(MRBOB_TEMPLATE_DIR, 'project')
    if testing:
        target_dir = './testing'
    else:
        target_dir = os.curdir
    if target_dir == os.curdir:
        if not prompt_bool(
                'not testing, are you sure you want to continue...'):
            sys.exit(0)
    list_questions = False
    non_interactive = False
    args = [template_dir, '-O', target_dir, '-v', '-w']
    cli.main(args)
Ejemplo n.º 8
0
from mrbob.cli import main

flask_root = '/root/projects/github/mrbob-flask-templates/mrbob_flask'

if __name__ == "__main__":
    main([flask_root])