Crates.io | nai |
lib.rs | nai |
version | 2.0.0 |
source | src |
created_at | 2023-06-19 19:54:22.912068 |
updated_at | 2024-08-07 06:04:54.39195 |
description | Measure the duration of meaningful pursuits |
homepage | |
repository | https://github.com/azzamsa/nai |
max_upload_size | |
id | 894351 |
size | 90,870 |
I want to have a fast way to calculate my family age, how long I have been working for a company, marriage, and other stuff.
Create a file named config.ron
in ~/.config/nai/. If you are on Windows, put it under \AppData\Nai. Then add your configuration:
Config(
moments: [
// My birthday
(
start_date: "1980-10-30",
// Currently, only `start_date` and `duration` are available
format: "👶 {{ 'Aragorn II Elessar age (Me)' | cyan | bold }}\nBorn at: {{ start_date | red }}\nAge: {{ duration }}\n",
),
],
)
To see more configuration, see the example
directory.
The release page includes pre-compiled binaries for GNU/Linux, macOS, and Windows.
Using cargo-binstall
$ cargo binstall nai
Using Rust's package manager cargo:
$ cargo install nai
git clone https://github.com/azzamsa/nai
# Build
cd nai
cargo build
# Run unit tests and integration tests
cargo test
# Install
cargo install --path .
To learn more read the development guide
Nai (나이) means "age" in Korean.