sleep-for

command module
v0.0.0-...-34ed956 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 3 Imported by: 0

README

Sleep-for GoDoc Go Report Card

Like Unix sleep but takes minutes, hours, etc.

Installation

First install Go.

If you just want to install the binary to your current directory and don't care about the source code, run

GOBIN="$(pwd)" GOPATH="$(mktemp -d)" go get github.com/carlmjohnson/sleep-for

Screenshots

$ sleep-for -h
sleep-for - Like Unix sleep but takes minutes, hours, etc.

Usage:

        sleep-for [options] <wake time>

Wake time may be a duration (e.g. "1h2m3s") or a target time (e.g. "1:00pm" or "13:02:03").

Options:
  -quiet
        don't log output

$ sleep-for 1s
sleep-for 2019/10/23 12:11:04 starting sleeping for 1s
sleep-for 2019/10/23 12:11:05 done

$ sleep-for 12:11:30
sleep-for 2019/10/23 12:11:16 starting sleeping for 13.230717s
sleep-for 2019/10/23 12:11:30 done

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL