mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
17 lines
442 B
Python
17 lines
442 B
Python
import djclick as click
|
|
|
|
from asciidoctor_sandbox.tasks import cleanup_old_sandbox_documents
|
|
|
|
|
|
@click.command()
|
|
def command():
|
|
"""Clean up old sandbox documents based on the configured retention period."""
|
|
click.echo("Starting sandbox document cleanup...")
|
|
|
|
# Run the task synchronously
|
|
cleanup_old_sandbox_documents()
|
|
|
|
click.echo(
|
|
click.style("Sandbox document cleanup completed successfully.", fg="green")
|
|
)
|