improve uninstall documentation, remove None output in uninstall command
This commit is contained in:
parent
903f11cf47
commit
95eb8db5a3
3 changed files with 13 additions and 8 deletions
|
|
@ -100,8 +100,8 @@ def delete_app(slug):
|
|||
|
||||
app_status = app_obj.get_status()
|
||||
if not app_status.installed:
|
||||
deleted = app_obj.delete()
|
||||
current_app.logger.info(f"Success.")
|
||||
app_obj.delete()
|
||||
current_app.logger.info("Success.")
|
||||
else:
|
||||
current_app.logger.info("Can not delete installed application, run"
|
||||
" 'uninstall' first")
|
||||
|
|
@ -122,8 +122,8 @@ def uninstall_app(slug):
|
|||
current_app.logger.info("Not found")
|
||||
return
|
||||
|
||||
uninstalled = app_obj.uninstall()
|
||||
current_app.logger.info(f"Success: {uninstalled}")
|
||||
app_obj.uninstall()
|
||||
current_app.logger.info("Success.")
|
||||
return
|
||||
|
||||
@app_cli.command("status")
|
||||
|
|
|
|||
Reference in a new issue