@fab.command("<STR_LIT>")<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>prompt="<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>)<EOL>def create_addon(name):
try:<EOL><INDENT>full_name = "<STR_LIT>" + name<EOL>dirname = "<STR_LIT>"<EOL>url = urlopen(ADDON_REPO_URL)<EOL>zipfile = ZipFile(BytesIO(url.read()))<EOL>zipfile.extractall()<EOL>os.rename(dirname, full_name)<EOL>addon_path = os.path.join(full_name, full_name)<EOL>os.rename(os.path.join(full_name, "<STR_LIT>"), addon_path)<EOL>f = open(os.path.join(full_name, "<STR_LIT>"), "<STR_LIT:w>")<EOL>f.write("<STR_LIT>" + name + "<STR_LIT>")<EOL>f.write("<STR_LIT>")<EOL>f.close()<EOL>click.echo(<EOL>click.style("<STR_LIT>", fg="<STR_LIT>")<EOL>)<EOL>return True<EOL><DEDENT>except Exception as e:<EOL><INDENT>click.echo(click.style("<STR_LIT>".format(e), fg="<STR_LIT>"))<EOL>return False<EOL><DEDENT>
Create a Skeleton AddOn (needs internet connection to github)