@stellar.command()<EOL>@click.argument('<STR_LIT>')<EOL>@click.argument('<STR_LIT>')<EOL>def rename(old_name, new_name):
app = get_app()<EOL>snapshot = app.get_snapshot(old_name)<EOL>if not snapshot:<EOL><INDENT>click.echo("<STR_LIT>" % old_name)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>new_snapshot = app.get_snapshot(new_name)<EOL>if new_snapshot:<EOL><INDENT>click.echo("<STR_LIT>" % new_name)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>app.rename_snapshot(snapshot, new_name)<EOL>click.echo("<STR_LIT>" % (old_name, new_name))<EOL>
Renames a snapshot