https://github.com/qu4tro/nap
nap is sleep for an utilitarian
https://github.com/qu4tro/nap
command-line-tool python sleep
Last synced: 20 days ago
JSON representation
nap is sleep for an utilitarian
- Host: GitHub
- URL: https://github.com/qu4tro/nap
- Owner: Qu4tro
- License: mit
- Created: 2015-02-16T06:27:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-19T16:32:20.000Z (almost 9 years ago)
- Last Synced: 2026-01-15T08:09:19.693Z (5 months ago)
- Topics: command-line-tool, python, sleep
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
*Nap*
==============
usage: nap [-h] [--quiet] [--dry-run] [--poll-time] {for,until} ... time
Sleep tight :)
positional arguments:
{for,until}
for Sleep for the given time
until Sleep until the given time
time Time values postfixed by their respective units separated
by nothing
optional arguments:
-h, --help show this help message and exit
--quiet, -q No output
--dry-run, -0 Only output
--poll-time, -p Instead of sleeping the entire time, checks every second if
the given time has arriven.
Example:
nap for 1h10m
nap for 1s1m
nap for 30s
nap until 9h23m10s
nap -q until 14h
nap -0 until 9h23m10s