An open API service indexing awesome lists of open source software.

https://github.com/koki-develop/slp

💤 sleep command with rich progress bar.
https://github.com/koki-develop/slp

Last synced: 4 months ago
JSON representation

💤 sleep command with rich progress bar.

Awesome Lists containing this project

README

          

# slp

[![GitHub release (latest by date)](https://img.shields.io/github/v/release/koki-develop/slp)](https://github.com/koki-develop/slp/releases/latest)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/koki-develop/slp/ci.yml?logo=github)](https://github.com/koki-develop/slp/actions/workflows/ci.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/koki-develop/slp)](https://goreportcard.com/report/github.com/koki-develop/slp)
[![LICENSE](https://img.shields.io/github/license/koki-develop/slp)](./LICENSE)

sleep command with rich progress bar.

![demo](./assets/demo.gif)

## Contents

- [Installation](#installation)
- [Usage](#usage)
- [LICENSE](#license)

## Installation

### Homebrew

```console
$ brew install koki-develop/tap/slp
```

### `go install`

```console
$ go install github.com/koki-develop/slp@latest
```

### Releases

Download the binary from the [releases page](https://github.com/koki-develop/slp/releases/latest).

## Usage

### Basic

```sh
$ slp [time]
# e.g.
$ slp 3
```

![](./assets/demo.gif)

### Customize Color

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

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

![](./assets/gradient.gif)

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

```sh
# e.g.
$ slp 3 --color "#ff0000"
```

![](./assets/color.gif)

## LICENSE

[MIT](./LICENSE)