示例#1
0
def new_framework(language):
	name = "COR-Framework-" + language
	new_cor_entity(name)
	if not os.path.exists("COR-Framework"):
		gc.gitaddsubmodule(CORFRAMEWORK)
	# initialize .cor directory
	framework_corfile(name)
示例#2
0
def new_module(name):
	new_cor_entity(name)
	languages = available_languages()
	language = click.prompt("Please enter the language ", type=click.Choice(list(languages.keys()) + ["OTHER"]))
	if language == "OTHER":
		language_url = click.prompt("Enter the url for language repo instead: ")
	else:
		language_url = languages[language]
	if not os.path.exists("cor"):
		gc.gitaddsubmodule(language_url, pathname="cor")
	# initialize .cor directory
	module_corfile(name, language_url)