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

CLI: should show count down #538

Open
muescha opened this issue Jan 22, 2025 · 0 comments
Open

CLI: should show count down #538

muescha opened this issue Jan 22, 2025 · 0 comments
Labels

Comments

@muescha
Copy link

muescha commented Jan 22, 2025

Describe the feature
When setting a delay, it would be helpful to display a countdown before the scan begins.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Terminal
  2. run the command
  3. See console without a countdown
$ naps2.console -p "7320 Einzug SW 200dpi" -a -n 2 -d 10000 -v --progress

2025-01-22 18:50:16.079 NAPS2[19087:1510821] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
Beginning scan...
Waiting 10000ms...
Starting scan 1 of 2...
0 page(s) scanned.
Waiting 10000ms...
Starting scan 2 of 2...
0 page(s) scanned.

Expected behavior

As an optional feature (--countdown) or when using the verbose mode (-v), I expect a countdown to display during each wait step, like this:

Waiting 10000ms...
10000ms
9000ms
8000ms
7000ms
6000ms
5000ms
4000ms
3000ms
2000ms
1000ms
Starting scan 2 of 2...

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.5 (23F79)
  • Version: NAPS 7.5.1.0
@cyanfish cyanfish added the cli label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants