naps2 icon indicating copy to clipboard operation
naps2 copied to clipboard

CLI: should show count down

Open muescha opened this issue 10 months ago • 0 comments

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

muescha avatar Jan 22 '25 18:01 muescha