Repository navigation
feat(cli): errors name a next step and per-command help uses one heading style - #239
Merged
Merged
Conversation
…ing style Co-authored-by: Duyet Le <me@duyet.net> Co-authored-by: duyetbot <bot@duyet.net>
Contributor
anyr size and startupStartup is wall time for a cold Size budget:
Budget check: ok raw timings[
{
"asset": "anyr-darwin-arm64",
"kind": "native",
"path": "/Users/runner/work/cli/cli/anyr-darwin-arm64",
"bytes": 2553800,
"size": "2.4 MiB",
"version": "0.1.36 (built 2026-10-28 17:38:57)",
"target": "aarch64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 3.44,
"median_ms": 3.8,
"p95_ms": 4.7,
"mean_ms": 3.92
},
"startup_help": {
"n": 21,
"min_ms": 3.11,
"median_ms": 4.01,
"p95_ms": 6.38,
"mean_ms": 4.54
}
},
{
"asset": "anyr-darwin-x86_64",
"kind": "native",
"path": "/Users/runner/work/cli/cli/anyr-darwin-x86_64",
"bytes": 3037656,
"size": "2.9 MiB",
"version": "0.1.36 (built 2026-10-28 17:39:12)",
"target": "x86_64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 32.04,
"median_ms": 34.45,
"p95_ms": 38.15,
"mean_ms": 35.14
},
"startup_help": {
"n": 21,
"min_ms": 31.78,
"median_ms": 35.02,
"p95_ms": 37.82,
"mean_ms": 35.78
}
},
{
"asset": "anyr-linux-arm64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-arm64",
"bytes": 3020048,
"size": "2.9 MiB",
"version": "0.1.36 (built 2026-10-28 17:38:54)",
"target": "aarch64-unknown-linux-gnu",
"os": "ubuntu-24.04-arm",
"startup_version": {
"n": 21,
"min_ms": 0.87,
"median_ms": 0.97,
"p95_ms": 1.06,
"mean_ms": 0.98
},
"startup_help": {
"n": 21,
"min_ms": 0.98,
"median_ms": 1.07,
"p95_ms": 1.19,
"mean_ms": 1.09
}
},
{
"asset": "anyr-linux-x86_64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-x86_64",
"bytes": 3521992,
"size": "3.4 MiB",
"version": "0.1.36 (built 2026-10-28 17:38:55)",
"target": "x86_64-unknown-linux-gnu",
"os": "ubuntu-latest",
"startup_version": {
"n": 21,
"min_ms": 0.75,
"median_ms": 0.79,
"p95_ms": 1.03,
"mean_ms": 0.86
},
"startup_help": {
"n": 21,
"min_ms": 0.85,
"median_ms": 0.9,
"p95_ms": 1.06,
"mean_ms": 0.92
}
},
{
"asset": "anyr-windows-x86_64.exe",
"kind": "native",
"path": "D:\\a\\cli\\cli\\anyr-windows-x86_64.exe",
"bytes": 2995712,
"size": "2.9 MiB",
"version": "0.1.36 (built 2026-10-28T17:39:56Z)",
"target": "x86_64-pc-windows-msvc",
"os": "windows-latest",
"startup_version": {
"n": 21,
"min_ms": 10.08,
"median_ms": 10.46,
"p95_ms": 10.94,
"mean_ms": 10.49
},
"startup_help": {
"n": 21,
"min_ms": 9.83,
"median_ms": 10.62,
"p95_ms": 12.08,
"mean_ms": 10.82
}
},
{
"asset": "anyr.wasm",
"kind": "wasm",
"path": "/home/runner/work/cli/cli/target/wasm-pkg/anyr_cli_bg.wasm",
"bytes": 258081,
"size": "252.0 KiB",
"version": "wasm",
"target": "wasm32-unknown-unknown",
"os": ""
}
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Owner request 2026-10-29: make anyr's terminal UX follow Vercel's fx (https://github.com/vercel-labs/fx). Companion to the README PR #238.
What fx does that anyr did not
Usage:,Options:,Examples:. anyr mixed that with gh-style ALL CAPS (USAGE,FLAGS,AVAILABLE COMMANDS) inauth,login,logout,status,switch,token,decision,onboard.error:prefix and the fix glued on after a period.Changes
src/help.rs,src/onboard.rs: per-command headings becomeUsage:,Commands:,Options:,Examples:,Aliases:,Settings:,Modes:. The root--helpand thehelp --allmap keep their layout (the cli-regression skill parses it).src/exit.rs: a one-line message ending in. Run: x,. Try: xor. Use: xprints as the message plus ahint:line, the shapeanyr bogusalready used. One-line usage errors now get theerror:prefix. Usage lines (Usage: ...) and multi-line help text print unchanged.--jsonmode gets the same split intomessageandhint.src/key.rs: the no-key error isnot signed in, no AnyRouter key foundplus a hint withanyr login(and--deviceover SSH) orANYROUTER_API_KEY. Exit code stays 4.tests/cli.rs: the missing-key assertion follows the new wording.Not changed: the interactive screens (
config --pick,models --pick, launcher). They already render plain text from the top left with a thin line, which is the owner rule and matches fx's inline style. No command or flag was removed or renamed.Before and after
NO_COLOR=1, empty HOME, no key,</dev/null. Output cut at 16 lines.Interactive flow
anyr config --dump-tuiis byte-identical before and after (plain, top-left):Verified
cargo test --locked --all-targetsall green (594 unit tests plus every integration test),cargo clippy --locked --all-targetsclean,cargo fmt --checkclean. New unit tests insrc/exit.rscover the hint split and the prefix rule.🤖 Generated with Claude Code