slumber

command module
v0.0.0-...-322a7da Latest Latest
Warning

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

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

README

Slumber 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/slumber

Screenshots

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

Usage:

        slumber [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

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

$ slumber 12:11:30
slumber 2019/10/23 12:11:16 starting sleeping for 13.230717s
slumber 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