Skip to content

fix(cli): label update current, latest, and status - #14

Merged
duyet merged 1 commit into
mainfrom
fix/update-status-messages
Aug 24, 2026
Merged

fix(cli): label update current, latest, and status#14
duyet merged 1 commit into
mainfrom
fix/update-status-messages

Conversation

@duyet

@duyet duyet commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

anyr update mixed two meanings of -> (version change vs install path) and left the running version unlabeled next to latest:.

Print labeled current / latest / channel / status. Keep -> only for old version to new version. Put the binary location on path:.

After merge, CI on main publishes the beta prerelease (ar update on the beta channel).

Checklist

  • Version stays on 0.1.x (do not introduce 0.2 / 1.0)
  • Do not auto-merge release-please PRs

Make `anyr update` print current vs latest, a status line, and old -> new
only for versions. The install path is a separate field so it is not
confused with the version change.

Co-authored-by: Duyet Le <me@duyet.net>
Co-authored-by: duyetbot <bot@duyet.net>
@duyet
duyet merged commit 629336a into main Aug 24, 2026
1 check passed
@github-actions

Copy link
Copy Markdown
Contributor

anyr size and startup

Startup is wall time for a cold anyr --version / anyr --help (median of 21 runs). Size is the stripped release binary, or the .wasm for the browser demo.

Size budget: anyr-linux-x86_64 must stay ≤ 4.0 MiB (4194304 bytes) stripped.

Asset Kind Size --version median --help median
anyr-darwin-arm64 native 2.4 MiB 3.61 ms 3.68 ms
anyr-linux-arm64 native 2.3 MiB 0.68 ms 0.73 ms
anyr-linux-x86_64 native 2.6 MiB 0.95 ms 0.93 ms
anyr-windows-x86_64.exe native 2.2 MiB 9.27 ms 9.26 ms
anyr.wasm wasm 173.9 KiB

Budget check: ok

raw timings
[
  {
    "asset": "anyr-darwin-arm64",
    "kind": "native",
    "path": "/Users/runner/work/cli/cli/anyr-darwin-arm64",
    "bytes": 2480312,
    "size": "2.4 MiB",
    "version": "0.1.10 (built 2026-08-24 15:05:32)",
    "target": "aarch64-apple-darwin",
    "os": "macos-latest",
    "startup_version": {
      "n": 21,
      "min_ms": 3.06,
      "median_ms": 3.61,
      "p95_ms": 4.3,
      "mean_ms": 3.68
    },
    "startup_help": {
      "n": 21,
      "min_ms": 2.79,
      "median_ms": 3.68,
      "p95_ms": 4.27,
      "mean_ms": 3.69
    }
  },
  {
    "asset": "anyr-linux-arm64",
    "kind": "native",
    "path": "/home/runner/work/cli/cli/anyr-linux-arm64",
    "bytes": 2429944,
    "size": "2.3 MiB",
    "version": "0.1.10 (built 2026-08-24 15:06:10)",
    "target": "aarch64-unknown-linux-gnu",
    "os": "ubuntu-24.04-arm",
    "startup_version": {
      "n": 21,
      "min_ms": 0.64,
      "median_ms": 0.68,
      "p95_ms": 0.77,
      "mean_ms": 0.69
    },
    "startup_help": {
      "n": 21,
      "min_ms": 0.69,
      "median_ms": 0.73,
      "p95_ms": 0.79,
      "mean_ms": 0.73
    }
  },
  {
    "asset": "anyr-linux-x86_64",
    "kind": "native",
    "path": "/home/runner/work/cli/cli/anyr-linux-x86_64",
    "bytes": 2742688,
    "size": "2.6 MiB",
    "version": "0.1.10 (built 2026-08-24 15:05:28)",
    "target": "x86_64-unknown-linux-gnu",
    "os": "ubuntu-latest",
    "startup_version": {
      "n": 21,
      "min_ms": 0.92,
      "median_ms": 0.95,
      "p95_ms": 0.99,
      "mean_ms": 0.96
    },
    "startup_help": {
      "n": 21,
      "min_ms": 0.91,
      "median_ms": 0.93,
      "p95_ms": 0.96,
      "mean_ms": 0.93
    }
  },
  {
    "asset": "anyr-windows-x86_64.exe",
    "kind": "native",
    "path": "D:\\a\\cli\\cli\\anyr-windows-x86_64.exe",
    "bytes": 2266112,
    "size": "2.2 MiB",
    "version": "0.1.10 (built 2026-08-24T15:06:29Z)",
    "target": "x86_64-pc-windows-msvc",
    "os": "windows-latest",
    "startup_version": {
      "n": 21,
      "min_ms": 8.83,
      "median_ms": 9.27,
      "p95_ms": 10.13,
      "mean_ms": 9.37
    },
    "startup_help": {
      "n": 21,
      "min_ms": 9.07,
      "median_ms": 9.26,
      "p95_ms": 9.69,
      "mean_ms": 9.31
    }
  },
  {
    "asset": "anyr.wasm",
    "kind": "wasm",
    "path": "/home/runner/work/cli/cli/target/wasm-pkg/anyr_cli_bg.wasm",
    "bytes": 178037,
    "size": "173.9 KiB",
    "version": "wasm",
    "target": "wasm32-unknown-unknown",
    "os": ""
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant