slp

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 1 Imported by: 0

README

slp

GitHub release (latest by date) GitHub Workflow Status Maintainability Go Report Card LICENSE

sleep command with rich progress bar.

demo

Installation

Homebrew
$ brew install koki-develop/tap/slp
go install
$ go install github.com/koki-develop/slp@latest
Releases

Download the binary from the releases page.

Usage

$ slp --help
sleep command with rich progress bar.

Usage:
  slp [time] [flags]

Flags:
      --second             set the time unit to seconds (default)
      --minute             set the time unit to minutes
      --hour               set the time unit to hours
  -b, --beep               beep when finished sleeping
      --color string       color of progress bar
      --gradient strings   apply a gradient between the two colors (default [#005B72,#1DD2FF])
  -h, --help               help for slp
  -v, --version            version for slp
Customize Color

--gradient flag can be used to apply a gradient between the two colors.

# e.g.
$ slp 3 --gradient #000000,#ffffff

You can also set a single color with the -color flag.

# e.g.
$ slp 3 --color #ff0000

LICENSE

MIT

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