#calculator #terminal #arithmetic #command-line #arithmetic-operations #cli

app albert

用 ❤️ 编写的 Rust 终端计算器

5 个版本

0.1.8 2023年11月26日
0.1.7 2023年11月26日
0.1.6 2023年11月26日
0.1.5 2023年11月26日
0.1.0 2023年11月26日

#152 in 数学

每月 24 下载

Apache-2.0

8KB
64

Albert

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

在命令行上执行数学运算。

注意: 这还是一个正在开发中的项目,目前不适合用于生产环境!在第一个稳定版本发布之前,所有的API都可能随时更改。

安装

所有发布的二进制文件都有相应的校验和可用。要获取校验和,将 .sha256 扩展名添加到二进制文件名。例如,要获取 al-x86_64-unknown-linux-gnu 二进制文件的校验和,运行

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

用法

当前支持的数学运算如下

  • 加法
  • 减法
  • 乘法
  • 除法

示例

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

贡献

如果您发现任何问题,有功能请求或想做出贡献,请随时打开问题或拉取请求。所有贡献都受欢迎。

许可

本项目采用 Apache License,版本 2.0 许可。

无运行时依赖