albert

Crates.ioalbert
lib.rsalbert
version0.1.8
sourcesrc
created_at2023-11-26 02:36:40.917917
updated_at2023-11-26 17:49:42.21084
descriptionA terminal calculator written in Rust with ❤️
homepage
repositoryhttps://github.com/meysam81/albert
max_upload_size
id1048744
size19,408
Meysam (meysam81)

documentation

README

Albert

Code Size Repo Size Docs Language Count Commit Intervals Last Release GitHub Stars GitHub Release Downloads Cargo Crate Crate Download License

Perform mathematical operations on the command line.

NOTE: This is a work in progress and it is not ready for production use! Expect any and all the APIs to change without notice prior to the first stable release.

Installation

All the distributed binaries have the corresponding checksums available. To fetch the checksum, add the .sha256 extension to the binary name. For example, to fetch the checksum for the al-x86_64-unknown-linux-gnu binary, run:

curl -LfO https://github.com/meysam81/albert/releases/latest/download/al-x86_64-unknown-linux-gnu
curl -LfO https://github.com/meysam81/albert/releases/latest/download/al-x86_64-unknown-linux-gnu.sha256
sha256sum -c al-x86_64-unknown-linux-gnu.sha256

Ubuntu

curl -sSLf https://github.com/meysam81/albert/releases/latest/download/al-x86_64-unknown-linux-gnu -o al
chmod +x al

macOS

curl -sSLf https://github.com/meysam81/albert/releases/latest/download/al-x86_64-apple-darwin -o al
chmod +x al

macOS (M1)

curl -sSLf https://github.com/meysam81/albert/releases/latest/download/al-aarch64-apple-darwin -o al
chmod +x al

Alpine

curl -sSLf https://github.com/meysam81/albert/releases/latest/download/al-x86_64-unknown-linux-musl  -o al
chmod +x al

Usage

Currently the following mathematical operations are supported:

  • Addition
  • Subtraction
  • Multiplication
  • Division

Examples

$ al 1 + 2
3
$ al 1 - 2 '*' 4
-7
$ al 1 - 2 '*' 4 / 2
-3

Contributing

If you see any issue, have a feature request, or want to contribute, please feel free to open an issue or a pull request. Any and all contributions are welcome.

License

This project is licensed under the Apache License, Version 2.0.

Commit count: 32

cargo fmt