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

Added quiet mode to not show output. #103

Merged
merged 3 commits into from
Mar 24, 2021
Merged

Added quiet mode to not show output. #103

merged 3 commits into from
Mar 24, 2021

Conversation

roykrikke
Copy link
Contributor

I added option "-q", "--quiet" to run phockup without output. I think this is a useful addition.

phockup.py Outdated
@@ -10,7 +10,7 @@
from src.printer import Printer


__version__ = "1.5.26"
__version__ = "1.5.27"
Copy link
Owner

Choose a reason for hiding this comment

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

Please revert this change as I will be bumping the version with multiple PRs merged. Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oke, revert the version to 1.5.26

src/phockup.py Outdated
@@ -140,7 +141,8 @@ def process_file(self, filename):
if str.endswith(filename, '.xmp'):
return None

printer.line(filename, True)
if not self.quiet:
Copy link
Owner

Choose a reason for hiding this comment

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

I think all these conditions added for this flag should be passed as a method call to the Printer class and handle the logic to not print anything there. Something like printer.should_print(self.quiet)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have also processed this feedback.

@ivandokov ivandokov merged commit f2826b6 into ivandokov:master Mar 24, 2021
unapproachable pushed a commit to unapproachable/phockup that referenced this pull request Mar 25, 2021
@ivandokov
Copy link
Owner

@roykrikke can you please add info about the new flag to the readme.

ivandokov added a commit that referenced this pull request Mar 30, 2021
)

* Removed for compatibility with Windows

* Implemented --maxdepth to limit recursion on input directory
Arbitrary limit of 255 set for command line option
#92

* Test compatibility for Windows (#102)

* Migrated to a more compatible filename for testing exiftool

* --Migrated Windows escaping to quoted input rather than shlex.quote escaping.
--Added space and punctuation test
--Added additional test image

* --Updated trailing slash test to use Windows specific slashes on win32

* --Updated trailing slash test to use Windows specific slashes on win32

* --revert unintended commit

* Added quiet mode to not show output. (#103)

* Arbitrary text change to help to test commits

* Updated readme.md with maxdepth details
Updated defaults to support --maxdepth=0 to allow processsing only the input directory without any subdirectory traversal.

Co-authored-by: roykrikke <[email protected]>
Co-authored-by: Ivan Dokov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants