跳到正文

Soulver CLI 版本记录

Soulver · 适用于 macOS 的命令行计算器,可计算表达式、进行交互式计算并处理 Soulver 工作簿。

Cask效率 79
主页
安装命令
brew install --cask soulver-cli
近 30 天安装
14
App榜第 1960
近一年安装
195
365 天累计
最新版本
2.2.0
下载大小
7.3MB
zip
更新节奏
不定期
近 30 天 0 个版本
  1. 2.2.0

    最新

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 12 起

    定义表和全局变量现可用于各类求值方式。货币汇率在后台刷新,sheetbook 写入采用协调操作,并修复了若干崩溃和命令行问题。

    求值
    裸表达式、eval 和 REPL 使用 sheetbook 定义。--path 选择 sheetbook;--no-definitions 使用内置引擎。同名全局变量与定义的解析方式现与 app 一致。
    汇率
    超过 12 小时的汇率会在后台刷新。刷新后的汇率用于下一次求值。不含货币的求和不会访问网络。新增汇率查询和刷新命令。
    修复
    协调 sheetbook 写入,避免覆盖 app 的保存。删除唯一一行或定义时会留下空行。修复旧资源包导致的崩溃及 CLI 选项问题。

    Soulver CLI 2.2.0 中,裸表达式、eval 和 REPL 现在会使用 sheetbook 的定义表和全局变量;此前只有表格命令会使用它们。--path 用于选择 sheetbook,--no-definitions 则使用内置引擎求值。同名全局变量和定义的解析方式现与 app 一致。

    求值不再等待获取货币汇率。如果求和使用的汇率已超过 12 小时,会在后台刷新,并在下一次求值时生效。不含货币的求和不会访问网络。每个版本都包含构建当天的汇率;在终端中,使用超过 7 天汇率计算出的货币结果会在 stderr 输出提示。soulver rates status 会报告当前使用的汇率及其时效,soulver rates refresh 会立即获取汇率。

    sheetbook 的更改现在通过协调的读取-修改-写入操作处理,因此 CLI 保存不会覆盖 app 的保存,且 app 会收到更改通知。删除表格的唯一一行或唯一一个定义时不再崩溃,而是留下空行。此版本还修复了 1.x Homebrew cask 遗留资源包导致的启动崩溃、裸命令形式下的 --path=file,以及 --alignment 区分大小写的问题。

    来源:https://github.com/soulverteam/Soulver-CLI/releases/tag/2.2.0

  2. 2.1.0

    OpenNavo 编辑 Homebrew 收录

    新增严格求值、自动转换、小数位数、JSON 输出等选项;--offline 会跳过过期汇率刷新并使用缓存汇率。修复长管道输入截断、文件答案错位、定义表写入和选项处理问题。

    新增选项
    --strict 遇到无法识别的词时报错--auto-convert 转换单独的计算结果--dp N 设置小数位数;--json 输出 JSON--offline 跳过汇率刷新并使用缓存汇率
    修复
    长管道工作表不再被静默截断文件答案与输入行保持对应写入定义表时修复其 Soulver 4 格式不同调用形式下的选项边界行为保持一致

    Soulver CLI 2.1.0 新增了严格求值、自动转换单独结果、设置小数位数和输出 JSON 的选项。--offline 会在求值前跳过过期汇率刷新,并使用已有的缓存汇率。这些选项可以组合使用。

    此版本修复了读取长管道工作表时内容被静默截断的问题。文件求值现在会为每个输入行输出一个答案,因此标题行和空行不会再导致答案错位。使用 2.1.0 写入一次定义表,可以修复 Soulver 4 无法打开的表格。重复选项、单独的 -- 以及缺少值的选项,在带引号的表达式调用和 eval 调用形式中的行为现在保持一致。

    官方发布说明

  3. 2.0.1

    补丁

    OpenNavo 编辑 Homebrew 收录

    Sheetbook 命令现在可以发现 Mac App Store 版 Soulver 4,并跟随最近声明其活动 sheetbook 的安装。

    Sheetbook
    可发现 Mac App Store 版 Soulver 4。会在 App Store 应用的沙盒中查找 sheetbook。使用最近声明活动 sheetbook 的安装。优化了“未找到 sheetbook”错误提示。

    Soulver CLI 2.0.1 更新了对 Mac App Store 安装版 Soulver 4 的 sheetbook 查找方式。soulver sheet list 和其他 sheetbook 命令现在会在 App Store 应用的沙盒容器中查找,因此无需 --path 或 SOULVER_SHEETBOOK,即可配合该安装使用。

    如果存在多个 Soulver 安装,CLI 会跟随最近声明其活动 sheetbook 的应用。本次发布还整理了未找到 sheetbook 时显示的错误信息。

    官方发布说明

  4. 2.0.0

    展开

    GitHub Release Homebrew 收录

    • Read and edit .sheetbook files: sheet, line, variable, definition, new, search, use, and inspect commands.
    • Export to text, CSV, HTML, and PNG, rendered with SoulverCore's HTML exporter.
    • Interactive mode keeps state — variables and line references persist across the session.
    • --locale for locale-specific parsing and formatting.
    • --json output on read and write commands, for use from scripts and agents.
    • Currency rates are fetched and cached locally rather than downloaded as a bundle on first launch.
    • Universal binary (Apple Silicon and Intel), signed and notarized.

    Existing usage is unchanged: soulver "1+1", echo "1+1" | soulver, and soulver file.txt all work as before.

    Expressions

    soulver "25% off 159.99 + 10% tax"
    soulver "98 USD in EUR"
    soulver "time in tokyo when it is 9am in new york"
    echo "150 GBP + 200 USD in AUD" | soulver
    soulver ~/Desktop/budget.txt          # evaluate every line of a file
    soulver --locale de_DE "1.000,50 + 1" # → 1001,5
    

    Interactive mode

    Run soulver with no arguments to start an interactive session. Variables and line references persist across the session:

    $ soulver
    Soulver — interactive calculator. Type 'exit' or press Ctrl-D to quit.
    >>> rent = 2400
    2400
    >>> rent * 12
    28800
    >>> line1 + 500
    2900
    

    Sheetbooks

    The CLI reads and edits the same .sheetbook files as the Soulver app. It uses your active sheetbook by default, or set one with soulver use, or pass --path.

    # sheets
    soulver sheet list
    soulver sheet show "Budget"
    soulver sheet create "July Expenses"
    soulver sheet move "Budget" --to "2026"
    soulver sheet save-as "Budget" --output ~/Budget.slvr
    
    # lines
    soulver line list   --sheet "Budget"
    soulver line append --sheet "Budget" "Rent: 2400"
    soulver line insert --sheet "Budget" --at 3 "Utilities: 180"
    soulver line set    --sheet "Budget" 2 "Rent: 2500"
    soulver line mark   subtotal --sheet "Budget" 4
    
    # variables, definitions, search
    soulver variable set hourly_rate "85 USD"
    soulver definition append "story = 3.5 m"
    soulver search "rent"
    
    # new files
    soulver new sheetbook --path ~/Documents/Finances.sheetbook
    

    line mark types: expression, subtotal, timepoint, running-total, running-budget. Lines can also be appended from stdin:

    printf 'Coffee: 4.50\nLunch: 14\nTaxi: 22' | soulver line append --sheet "Today"
    

    Export

    soulver export txt  --sheet "Budget" --output budget.txt
    soulver export csv  --sheet "Budget" --output budget.csv
    soulver export html --sheet "Budget" --show-line-numbers --show-total --output budget.html
    soulver export png  --sheet "Budget" --width 800 --output budget.png
    soulver export txt  --sheet "Budget" --clipboard
    

    HTML and PNG are rendered with SoulverCore's HTML exporter, so output is syntax-highlighted and matches the app.

    JSON

    Read commands return structured JSON with --json; write commands report what changed ({ok, id, line, …}) so results can be chained without parsing prose. Errors go to stderr with a non-zero exit code.

    soulver sheet list --json
    soulver inspect line --sheet "Budget" --line 1 --json
    id=$(soulver sheet create "Budget" --json | jq -r .id)
    

    Currency

    Exchange rates (190+ fiat and crypto) are fetched on first use and cached in ~/.config/soulver/, then refreshed periodically. Conversions work offline once cached.

    Notes

    • The command is soulver. The Homebrew cask is soulver-cli.
    • Help: soulver --help, soulver <command> --help, soulver help <command> <subcommand>.
  5. 1.0.1

    展开

    GitHub Release

    • Update to the latest SoulverCore version (2.6.3)
    • Answer formatting (with the thousands separator & large number notation) is now disabled when doing multi-line calculations