Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging to pupa clean failsafe #350

Merged
merged 3 commits into from
Aug 22, 2023
Merged

Add logging to pupa clean failsafe #350

merged 3 commits into from
Aug 22, 2023

Conversation

antidipyramid
Copy link
Collaborator

Overview

This PR adds logging to the pupa clean CLI command. When the failsafe is triggered, we'll also output the stale database objects that were found.

@coveralls
Copy link

coveralls commented Aug 3, 2023

Coverage Status

coverage: 94.639% (-0.2%) from 94.806% when pulling 8fdc8d3 on add-clean-info into 21d36c2 on master.

Comment on lines +99 to +101
f"This command would delete {num_stale_objects} objects: "
f"\n{stale_objects}"
"\nIf you're sure, re-run without --noinput to provide confirmation."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than forcing confirmation, what about a flag you can pass with noinput to confirm? For example, you can do apt-get install -y to confirm installations noninteractively.

@antidipyramid antidipyramid merged commit 1c9d673 into master Aug 22, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants