5 releases
0.1.8 | Nov 26, 2023 |
---|---|
0.1.7 | Nov 26, 2023 |
0.1.6 | Nov 26, 2023 |
0.1.5 | Nov 26, 2023 |
0.1.0 | Nov 26, 2023 |
#371 in Math
8KB
64 lines
Albert
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.