diff --git a/secretshare/app.py b/secretshare/app.py index 6295c1e..6d5bf1d 100644 --- a/secretshare/app.py +++ b/secretshare/app.py @@ -101,6 +101,11 @@ def not_found(error): ), 404) return response +@app.cli.command() +def purge_secrets(): + """Purge secrets manually""" + from secretshare.cleanup import purge_expired_secrets + purge_expired_secrets() if __name__ == '__main__': app.run()