https://github.com/rsookram/calr
Command-line tool which displays a calendar
https://github.com/rsookram/calr
calendar cli rust
Last synced: 6 months ago
JSON representation
Command-line tool which displays a calendar
- Host: GitHub
- URL: https://github.com/rsookram/calr
- Owner: rsookram
- License: apache-2.0
- Created: 2019-03-29T23:16:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-09T22:16:13.000Z (12 months ago)
- Last Synced: 2025-07-10T08:47:37.149Z (12 months ago)
- Topics: calendar, cli, rust
- Language: Rust
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# calr
calr is a command line tool that displays a calendar, similar to `cal(1)`.
Its output looks like:
```
May 2020
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
```
## Installation
Currently, pre-compiled binaries of calr aren't being distributed. You can
install it with
[Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) by
running
```
cargo install --git https://github.com/rsookram/calr
```
## Usage
```
USAGE:
calr [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-y Display the specified year [default: current]
-m Display the specified month [default: current]
-A Display the number of months after the current month [default: 0]
-B Display the number of months before the current month [default: 0]
```
## Building
calr can be built from source by cloning this repository and using Cargo.
```
git clone https://github.com/rsookram/calr
cd calr
cargo build --release
```
## Dependencies
[`time`](https://crates.io/crates/time) is used for working with time.
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
https://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
https://opensource.org/licenses/MIT)
at your option.