Runs for the given time and is similar to the Unix sleep
command
This program is meant to explore cross-platform distribution over many operating systems and package managers. The program provides a cross-platform interface for delaying the execution of a script for a given amount of time.
Download the snore
binary suitable for your CPU architecture. If unsure, use amd64. After downloading, rename the executable to snore
:
shell
$ mv snore-linux-amd64 snore
Before you can run the executable, you have to set the executable flag:
shell
$ chmod +x /path/to/snore
You can now run the program with:
shell
$ /path/to/snore
Move the executable into your
PATH
to use it like any other program installed on the system
Download the snore
binary and rename it to snore
:
shell
$ mv snore-macos snore
Before you can run the executable, you have to set the executable flag:
shell
$ chmod +x /path/to/snore
You can now run the program with:
shell
$ /path/to/snore
Move the executable into your
PATH
to use it like any other program installed on the system
Download snore-windows.exe
and rename it to snore.exe
. You can now run the program in the Windows command-line:
cmd
C:\> \path\to\snore.exe
Move the executable into your
PATH
to use it like any other program installed on the system
When snore
is available in your PATH
you can start using it.
Run snore
for one second
shell
$ snore 1
Run snore
for 200 milliseconds
shell
$ snore 200ms
Run snore
for 1 hour and 20 minutes
shell
$ snore 1h 20m
Run snore
for 2 seconds and 500 milliseconds
shell
$ snore 500ms 2s
Run snore
for one and a half seconds
shell
$ snore 1.5s
Run snore
for 0.001 days
shell
$ snore 0.001d
Instead of downloading a precompiled binary, you can build the project yourself from source. First you have to setup a Rust toolchain. I recommend using rustup
. When the latest Rust stable toolchain is successfully installed, you can compile the code.
$ cargo install --path .
The program will be installed to ~/.cargo/bin/snore
.
If you find any bugs/unexpected behaviour or you have a proposition for future changes open an issue describing the current behaviour and what you expected.
Fin Christensen
:octocat:
@fin-ger
:elephant:@fin_ger@weirder.earth
:bird:@fin_ger_github
Give a :star: if this project helped you!