예제 #1
0
파일: mr_bob.py 프로젝트: 2008820/flask-xxl
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)
예제 #2
0
파일: mr_bob.py 프로젝트: imfht/flaskapps
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)
예제 #3
0
파일: cli.py 프로젝트: joejean/flask-xxl
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)
예제 #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)
예제 #5
0
파일: mr_bob.py 프로젝트: imfht/flaskapps
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)
예제 #6
0
파일: cli.py 프로젝트: imfht/flaskapps
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)
예제 #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)
예제 #8
0
from mrbob.cli import main

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

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