Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/arthurhenrique/rusti-cal

⚡️ A cal(1) clone lightning-fast ~ more than 9999 years ~ Written in Rust 🦀
https://github.com/arthurhenrique/rusti-cal

calendar cli command-line date hacktoberfest rust terminal tool

Last synced: 29 days ago
JSON representation

⚡️ A cal(1) clone lightning-fast ~ more than 9999 years ~ Written in Rust 🦀

Awesome Lists containing this project

README

        



⚡️ Lightning-fast and minimal calendar command line. It's similar to `cal`.
Written in Rust 🦀

![Tests](https://github.com/arthurhenrique/rusti-cal/actions/workflows/rust.yml/badge.svg)

## How Can Install?

```sh
$ cargo install rusti-cal
```

If you are on NetBSD, there's a package available from the official repositories.
To install simply run:

```sh
# pkgin install rusti-cal
```

## Usage

```sh
$ rusti-cal
```

## Hands On

![hands-on](./doc/rusti-cal.gif)

## Starting Day

+ Start Week With Sunday (Default)

```sh
$ rusti-cal --starting-day 0
```

+ Start Week With Monday

```sh
$ rusti-cal --starting-day 1
```

+ Start Week With Tuesday

```sh
$ rusti-cal --starting-day 2
```

+ Start Week With Wednesday

```sh
$ rusti-cal --starting-day 3
```

+ Start Week With Thursday

```sh
$ rusti-cal --starting-day 4
```

+ Start Week With Friday

```sh
$ rusti-cal --starting-day 5
```

+ Start Week With Saturday

```sh
$ rusti-cal --starting-day 6
```

## Locale based names

The current locale can be overwritten with the `LANG` environment variable to display the calendar in another language.

```sh
$ LANG=fr_FR rusti-cal
```

## Colored output

Enable colored output with the `--color` or `-c` option. This highlights weekend days and the current day.

```sh
$ rusti-cal --color
```

![colored](./doc/colored.png)

## Show Week Numbers

Show week numbers with the `--week-numbers` or `-w` option.

```sh
$ rusti-cal --week-numbers
```

## talk is cheap