Skip to content
sleep with progress and formatted duration
Go Dockerfile Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
Makefile
README.md
go.mod
go.sum
main.go

README.md

sleepy

sleep with progress and formated duration

Install

go get -u github.com/iwittkau/sleepy

Usage

sleepy duration [message]

Sleep for 10 minutes:

$ sleepy 10m
[=>----------------------------------------------------------]   3.00% 09m11s

Sleep for 10 seconds with message:

$ sleepy 10s "ten seconds"
 ten seconds [============================================================] 100.00%
 2019/04/23 19:55:10 finished "ten seconds"

Valid time units are ns, us (or µs), ms, s, m, h as in Go's time package.

The Progress Bar

sleepy's progress bar is created with the cheggaaa/pb library.

You can’t perform that action at this time.