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)
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)
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)
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)
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)
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)
from mrbob.cli import main flask_root = '/root/projects/github/mrbob-flask-templates/mrbob_flask' if __name__ == "__main__": main([flask_root])