Skip to content

registry: use inline table for test definitions#8056

Merged
jdx merged 2 commits intomainfrom
refactor-registry-test-format
Feb 8, 2026
Merged

registry: use inline table for test definitions#8056
jdx merged 2 commits intomainfrom
refactor-registry-test-format

Conversation

@jdx
Copy link
Owner

@jdx jdx commented Feb 8, 2026

Summary

  • Changes registry test format from positional array to named inline table fields
  • Before: test = ["bat --version", "bat {{version}}"]
  • After: test = { cmd = "bat --version", expected = "bat {{version}}" }
  • Updates build.rs to parse the new table format
  • Updates schema/mise-registry-tool.json to match

Test plan

  • All 510 registry TOML files validated with Python tomllib
  • cargo check passes
  • All pre-commit lints pass (taplo, cargo-check, etc.)
  • CI passes

🤖 Generated with Claude Code


Note

Medium Risk
Touches build-time registry code generation and changes the on-disk registry schema; any missed migration or parsing edge case could break registry validation or generated output.

Overview
Switches registry test metadata from a positional array ([cmd, expected]) to a named inline table ({ cmd, expected }) across the registry TOML entries.

Updates build.rs registry codegen to parse the new test table shape with clearer validation errors, and updates schema/mise-registry-tool.json to enforce the new object format (required cmd/expected, no extra fields).

Written by Cursor Bugbot for commit f6e16b8. This will update automatically on new commits. Configure here.

Change test format from positional array to named fields:

  Before: test = ["bat --version", "bat {{version}}"]
  After:  test = { cmd = "bat --version", expected = "bat {{version}}" }

This makes the test definitions self-documenting since each field
is explicitly named rather than relying on array position.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 8, 2026 14:21
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @jdx, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request aims to improve the clarity and maintainability of test definitions within the registry by standardizing their format. By transitioning from an implicit positional array to an explicit named inline table structure for the test field, the cmd and expected components of each test are now immediately identifiable. This change enhances readability, reduces potential for errors, and streamlines future modifications. The build.rs script has been updated to accommodate this new format, and the change has been applied across all relevant registry definition files.

Highlights

  • Standardized Test Definition Format: The test field in registry TOML files has been refactored from a positional array ["cmd", "expected"] to a more explicit and readable inline table format { cmd = "cmd_string", expected = "expected_string" }.
  • Updated Parsing Logic: The build.rs script has been updated to correctly parse the new inline table structure for test definitions, ensuring compatibility with the standardized format.
  • Widespread Application: This format change has been applied consistently across numerous registry TOML files, enhancing uniformity and maintainability throughout the registry.
Changelog
  • build.rs
    • Updated the parsing logic for the test field to handle the new inline table format, replacing array-based access with named key access (t[0] to t["cmd"] and t[1] to t["expected"]).
  • registry/1password.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aapt2.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/act.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/action-validator.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/actionlint.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/adr-tools.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/age-plugin-yubikey.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/age.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/agebox.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aichat.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/air.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aks-engine.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/allure.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/allurectl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/alp.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/amass.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/amazon-ecr-credential-helper.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/amazon-ecs-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/amp.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/android-sdk.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ansible-core.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ansible.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ant.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/apko.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/apollo-router.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/apollo-rover.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aqua.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/arduino.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/argc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/argo-rollouts.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/argo.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/argocd.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/asciidoctorj.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/assh.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ast-grep.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/astro.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/atlas-community.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/atlas.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/atmos.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/atuin.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/auto-doc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aws-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aws-copilot.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aws-iam-authenticator.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aws-nuke.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aws-sam.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/aws-sso.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/awscli-local.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/awsebcli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/awsls.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/awsrm.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/awsweeper.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/azure-kubelogin.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/azure.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/babashka.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/balena.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bashbot.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bat-extras.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bat.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bats.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bazel-watcher.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bazel.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bazelisk.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bfs.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bibtex-tidy.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/binnacle.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/biome.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bitwarden-secrets-manager.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bitwarden.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/black.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/blender.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bob.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/boilerplate.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bombardier.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/borg.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bosh-backup-and-restore.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bosh.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bottom.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/boundary.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bpkg.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/brig.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/btop.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/btrace.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/buf.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/buildifier.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/buildpack.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/bun.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cabal.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/caddy.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/calendarsync.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/calicoctl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/carapace.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cargo-binstall.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cargo-insta.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cargo-make.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/carp.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ccache.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/certstrap.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cf.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cfssljson.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/chamber.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/changie.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/checkmake.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/checkov.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/chezmoi.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/chicken.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/chisel.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/choose.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/chromedriver.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cidr-merger.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cidrchk.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cilium-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cilium-hubble.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/circleci.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/clarinet.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/claude-powerline.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/claude-squad.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/claude.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cli53.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/clickhouse.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/clj-kondo.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cljstyle.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cloudflared.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/clusterawsadm.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/clusterctl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cmake.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cmdx.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cockroach.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cocoapods.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cocogitto.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/code.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/codeql.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/codex.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/colima.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/conan.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/conduit.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/conform.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/container-use.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/container.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/copier.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/copper.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/coredns.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/coreutils.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cosign.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cpz.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/crane.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/credhub.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/croc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/crush.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/cspell.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ctop.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/curlie.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/d2.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dagu.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dapr.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/databricks-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/daytona.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/delta.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/depot.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/desk.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/devcontainer-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dhall.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/diffoci.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/difftastic.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dive.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/djinni.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/docker-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/docker-compose.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/docker-slim.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/doctl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/docuum.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/doggo.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/doppler.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dotenv-linter.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dotenvx.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dotslash.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/drone.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dua.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/duckdb.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dust.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/dvc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/editorconfig-checker.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/elm.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/envcli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/esc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/esy.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/etcd.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/eza.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/fastfetch.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/fd.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/figma-export.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/flamingo.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/flatc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/fluttergen.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/flux2.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/flyway.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/fnox.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/foundry.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/func-e.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/furyctl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/fzf.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gator.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gcloud.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gemini-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/getenvoy.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ggshield.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ghalint.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ghc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ghcup.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ginkgo.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/git-cliff.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/git-lfs.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gitconfig.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/github-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/github-markdown-toc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gitleaks.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gitsign.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/glab.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gleam.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/glen.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/go-getter.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/go-junit-report.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/go-swagger.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/godot.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gofumpt.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gojq.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gokey.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/golangci-lint-langserver.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/golines.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gomigrate.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gping.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gradle.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/grain.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/graphite.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/grex.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gron.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/grpc-health-probe.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/grype.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/gup.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/hadolint.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/harper-cli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/harper-ls.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/has.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/hatch.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/haxe.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/helix.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/helm-diff.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/helm-ls.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/helmfile.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/helmwave.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/heroku.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/hexyl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/hivemind.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/hk.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/htmlq.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/httpie-go.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/hwatch.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/iam-policy-json-to-terraform.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/infisical.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/istioctl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jaq.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jc.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jd.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jib.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jjui.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jmespath.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jq.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/json5.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jsonnet-bundler.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jsonschema.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jules.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/julia.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/just.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/jwt.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/k0sctl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/k2tf.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/k3d.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/k3kcli.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/k3s.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/k6.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kcl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ki.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/killport.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kind.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kn.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/ko.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kompose.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kopia.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kpack.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/krab.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kscript.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kubecolor.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kubectl-kots.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kubectl-kuttl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kubectl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kubefedctl.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kubent.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kubeone.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
  • registry/kubeseal.toml
    • Migrated the test field from a positional array to an inline table with cmd and expected keys.
Activity
  • The author validated all 510 registry TOML files using Python tomllib to ensure correctness of the new format.
  • cargo check was run and passed, confirming no new compilation issues.
  • All pre-commit lints, including taplo and cargo-check, passed successfully.
  • CI is expected to pass, indicating full integration and functionality of the changes.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates registry test definitions from positional arrays to named inline tables, and adjusts the Rust registry codegen to parse the new format.

Changes:

  • Convert test = ["cmd", "expected"] to test = { cmd = "...", expected = "..." } across registry TOML files
  • Update build.rs registry parsing to read test.cmd / test.expected from TOML tables

Reviewed changes

Copilot reviewed 300 out of 512 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
registry/kubeseal.toml Convert test to inline table with cmd/expected keys
registry/kubeone.toml Convert test to inline table with cmd/expected keys
registry/kubent.toml Convert test to inline table with cmd/expected keys
registry/kubefedctl.toml Convert test to inline table with cmd/expected keys
registry/kubectl.toml Convert test to inline table with cmd/expected keys
registry/kubectl-kuttl.toml Convert test to inline table with cmd/expected keys
registry/kubectl-kots.toml Convert test to inline table with cmd/expected keys
registry/kubecolor.toml Convert test to inline table with cmd/expected keys
registry/kscript.toml Convert test to inline table with cmd/expected keys
registry/krab.toml Convert test to inline table with cmd/expected keys
registry/kpack.toml Convert test to inline table with cmd/expected keys
registry/kopia.toml Convert test to inline table with cmd/expected keys
registry/kompose.toml Convert test to inline table with cmd/expected keys
registry/ko.toml Convert test to inline table with cmd/expected keys
registry/kn.toml Convert test to inline table with cmd/expected keys
registry/kind.toml Convert test to inline table with cmd/expected keys
registry/killport.toml Convert test to inline table with cmd/expected keys
registry/ki.toml Convert test to inline table with cmd/expected keys
registry/kcl.toml Convert test to inline table with cmd/expected keys
registry/k6.toml Convert test to inline table with cmd/expected keys
registry/k3s.toml Convert test to inline table with cmd/expected keys
registry/k3kcli.toml Convert test to inline table with cmd/expected keys
registry/k3d.toml Convert test to inline table with cmd/expected keys
registry/k2tf.toml Convert test to inline table with cmd/expected keys
registry/k0sctl.toml Convert test to inline table with cmd/expected keys
registry/jwt.toml Convert test to inline table with cmd/expected keys
registry/just.toml Convert test to inline table with cmd/expected keys
registry/julia.toml Convert test to inline table with cmd/expected keys
registry/jules.toml Convert test to inline table with cmd/expected keys
registry/jsonschema.toml Convert test to inline table with cmd/expected keys
registry/jsonnet-bundler.toml Convert test to inline table with cmd/expected keys
registry/json5.toml Convert test to inline table with cmd/expected keys
registry/jq.toml Convert test to inline table with cmd/expected keys
registry/jmespath.toml Convert test to inline table with cmd/expected keys
registry/jjui.toml Convert test to inline table with cmd/expected keys
registry/jib.toml Convert test to inline table with cmd/expected keys
registry/jd.toml Convert test to inline table with cmd/expected keys
registry/jc.toml Convert test to inline table with cmd/expected keys
registry/jaq.toml Convert test to inline table with cmd/expected keys
registry/istioctl.toml Convert test to inline table with cmd/expected keys
registry/infisical.toml Convert test to inline table with cmd/expected keys
registry/iam-policy-json-to-terraform.toml Convert test to inline table with cmd/expected keys
registry/hwatch.toml Convert test to inline table with cmd/expected keys
registry/httpie-go.toml Convert test to inline table with cmd/expected keys
registry/htmlq.toml Convert test to inline table with cmd/expected keys
registry/hk.toml Convert test to inline table with cmd/expected keys
registry/hivemind.toml Convert test to inline table with cmd/expected keys
registry/hexyl.toml Convert test to inline table with cmd/expected keys
registry/heroku.toml Convert test to inline table with cmd/expected keys
registry/helmwave.toml Convert test to inline table with cmd/expected keys
registry/helmfile.toml Convert test to inline table with cmd/expected keys
registry/helm-ls.toml Convert test to inline table with cmd/expected keys
registry/helm-diff.toml Convert test to inline table with cmd/expected keys
registry/helix.toml Convert test to inline table with cmd/expected keys
registry/haxe.toml Convert test to inline table with cmd/expected keys
registry/hatch.toml Convert test to inline table with cmd/expected keys
registry/has.toml Convert test to inline table with cmd/expected keys
registry/harper-ls.toml Convert test to inline table with cmd/expected keys
registry/harper-cli.toml Convert test to inline table with cmd/expected keys
registry/hadolint.toml Convert test to inline table with cmd/expected keys
registry/gup.toml Convert test to inline table with cmd/expected keys
registry/grype.toml Convert test to inline table with cmd/expected keys
registry/grpc-health-probe.toml Convert test to inline table with cmd/expected keys
registry/gron.toml Convert test to inline table with cmd/expected keys
registry/grex.toml Convert test to inline table with cmd/expected keys
registry/graphite.toml Convert test to inline table with cmd/expected keys
registry/grain.toml Convert test to inline table with cmd/expected keys
registry/gradle.toml Convert test to inline table with cmd/expected keys
registry/gping.toml Convert test to inline table with cmd/expected keys
registry/gomigrate.toml Convert test to inline table with cmd/expected keys
registry/golines.toml Convert test to inline table with cmd/expected keys
registry/golangci-lint-langserver.toml Convert test to inline table with cmd/expected keys
registry/gokey.toml Convert test to inline table with cmd/expected keys
registry/gojq.toml Convert test to inline table with cmd/expected keys
registry/gofumpt.toml Convert test to inline table with cmd/expected keys
registry/godot.toml Convert test to inline table with cmd/expected keys
registry/go-swagger.toml Convert test to inline table with cmd/expected keys
registry/go-junit-report.toml Convert test to inline table with cmd/expected keys
registry/go-getter.toml Convert test to inline table with cmd/expected keys
registry/glen.toml Convert test to inline table with cmd/expected keys
registry/gleam.toml Convert test to inline table with cmd/expected keys
registry/glab.toml Convert test to inline table with cmd/expected keys
registry/gitsign.toml Convert test to inline table with cmd/expected keys
registry/gitleaks.toml Convert test to inline table with cmd/expected keys
registry/github-markdown-toc.toml Convert test to inline table with cmd/expected keys
registry/github-cli.toml Convert test to inline table with cmd/expected keys
registry/gitconfig.toml Convert test to inline table with cmd/expected keys
registry/git-lfs.toml Convert test to inline table with cmd/expected keys
registry/git-cliff.toml Convert test to inline table with cmd/expected keys
registry/ginkgo.toml Convert test to inline table with cmd/expected keys
registry/ghcup.toml Convert test to inline table with cmd/expected keys
registry/ghc.toml Convert test to inline table with cmd/expected keys
registry/ghalint.toml Convert test to inline table with cmd/expected keys
registry/ggshield.toml Convert test to inline table with cmd/expected keys
registry/getenvoy.toml Convert test to inline table with cmd/expected keys
registry/gemini-cli.toml Convert test to inline table with cmd/expected keys
registry/gcloud.toml Convert test to inline table with cmd/expected keys
registry/gator.toml Convert test to inline table with cmd/expected keys
registry/fzf.toml Convert test to inline table with cmd/expected keys
registry/furyctl.toml Convert test to inline table with cmd/expected keys
registry/func-e.toml Convert test to inline table with cmd/expected keys
registry/foundry.toml Convert test to inline table with cmd/expected keys
registry/fnox.toml Convert test to inline table with cmd/expected keys
registry/flyway.toml Convert test to inline table with cmd/expected keys
registry/flux2.toml Convert test to inline table with cmd/expected keys
registry/fluttergen.toml Convert test to inline table with cmd/expected keys
registry/flatc.toml Convert test to inline table with cmd/expected keys
registry/flamingo.toml Convert test to inline table with cmd/expected keys
registry/figma-export.toml Convert test to inline table with cmd/expected keys
registry/fd.toml Convert test to inline table with cmd/expected keys
registry/fastfetch.toml Convert test to inline table with cmd/expected keys
registry/eza.toml Convert test to inline table with cmd/expected keys
registry/etcd.toml Convert test to inline table with cmd/expected keys
registry/esy.toml Convert test to inline table with cmd/expected keys
registry/esc.toml Convert test to inline table with cmd/expected keys
registry/envcli.toml Convert test to inline table with cmd/expected keys
registry/elm.toml Convert test to inline table with cmd/expected keys
registry/editorconfig-checker.toml Convert test to inline table with cmd/expected keys
registry/dvc.toml Convert test to inline table with cmd/expected keys
registry/dust.toml Convert test to inline table with cmd/expected keys
registry/duckdb.toml Convert test to inline table with cmd/expected keys
registry/dua.toml Convert test to inline table with cmd/expected keys
registry/drone.toml Convert test to inline table with cmd/expected keys
registry/dotslash.toml Convert test to inline table with cmd/expected keys
registry/dotenvx.toml Convert test to inline table with cmd/expected keys
registry/dotenv-linter.toml Convert test to inline table with cmd/expected keys
registry/doppler.toml Convert test to inline table with cmd/expected keys
registry/doggo.toml Convert test to inline table with cmd/expected keys
registry/docuum.toml Convert test to inline table with cmd/expected keys
registry/doctl.toml Convert test to inline table with cmd/expected keys
registry/docker-slim.toml Convert test to inline table with cmd/expected keys
registry/docker-compose.toml Convert test to inline table with cmd/expected keys
registry/docker-cli.toml Convert test to inline table with cmd/expected keys
registry/djinni.toml Convert test to inline table with cmd/expected keys
registry/dive.toml Convert test to inline table with cmd/expected keys
registry/difftastic.toml Convert test to inline table with cmd/expected keys
registry/diffoci.toml Convert test to inline table with cmd/expected keys
registry/dhall.toml Convert test to inline table with cmd/expected keys
registry/devcontainer-cli.toml Convert test to inline table with cmd/expected keys
registry/desk.toml Convert test to inline table with cmd/expected keys
registry/depot.toml Convert test to inline table with cmd/expected keys
registry/delta.toml Convert test to inline table with cmd/expected keys
registry/daytona.toml Convert test to inline table with cmd/expected keys
registry/databricks-cli.toml Convert test to inline table with cmd/expected keys
registry/dapr.toml Convert test to inline table with cmd/expected keys
registry/dagu.toml Convert test to inline table with cmd/expected keys
registry/d2.toml Convert test to inline table with cmd/expected keys
registry/curlie.toml Convert test to inline table with cmd/expected keys
registry/ctop.toml Convert test to inline table with cmd/expected keys
registry/cspell.toml Convert test to inline table with cmd/expected keys
registry/crush.toml Convert test to inline table with cmd/expected keys
registry/croc.toml Convert test to inline table with cmd/expected keys
registry/credhub.toml Convert test to inline table with cmd/expected keys
registry/crane.toml Convert test to inline table with cmd/expected keys
registry/cpz.toml Convert test to inline table with cmd/expected keys
registry/cosign.toml Convert test to inline table with cmd/expected keys
registry/coreutils.toml Convert test to inline table with cmd/expected keys
registry/coredns.toml Convert test to inline table with cmd/expected keys
registry/copper.toml Convert test to inline table with cmd/expected keys
registry/copier.toml Convert test to inline table with cmd/expected keys
registry/container.toml Convert test to inline table with cmd/expected keys
registry/container-use.toml Convert test to inline table with cmd/expected keys
registry/conform.toml Convert test to inline table with cmd/expected keys
registry/conduit.toml Convert test to inline table with cmd/expected keys
registry/conan.toml Convert test to inline table with cmd/expected keys
registry/colima.toml Convert test to inline table with cmd/expected keys
registry/codex.toml Convert test to inline table with cmd/expected keys
registry/codeql.toml Convert test to inline table with cmd/expected keys
registry/code.toml Convert test to inline table with cmd/expected keys
registry/cocogitto.toml Convert test to inline table with cmd/expected keys
registry/cocoapods.toml Convert test to inline table with cmd/expected keys
registry/cockroach.toml Convert test to inline table with cmd/expected keys
registry/cmdx.toml Convert test to inline table with cmd/expected keys
registry/cmake.toml Convert test to inline table with cmd/expected keys (multiline expected)
registry/clusterctl.toml Convert test to inline table with cmd/expected keys
registry/clusterawsadm.toml Convert test to inline table with cmd/expected keys
registry/cloudflared.toml Convert test to inline table with cmd/expected keys
registry/cljstyle.toml Convert test to inline table with cmd/expected keys
registry/clj-kondo.toml Convert test to inline table with cmd/expected keys
registry/clickhouse.toml Convert test to inline table with cmd/expected keys
registry/cli53.toml Convert test to inline table with cmd/expected keys
registry/claude.toml Convert test to inline table with cmd/expected keys
registry/claude-squad.toml Convert test to inline table with cmd/expected keys (multiline expected)
registry/claude-powerline.toml Convert test to inline table with cmd/expected keys
registry/clarinet.toml Convert test to inline table with cmd/expected keys
registry/circleci.toml Convert test to inline table with cmd/expected keys
registry/cilium-hubble.toml Convert test to inline table with cmd/expected keys
registry/cilium-cli.toml Convert test to inline table with cmd/expected keys
registry/cidrchk.toml Convert test to inline table with cmd/expected keys
registry/cidr-merger.toml Convert test to inline table with cmd/expected keys
registry/chromedriver.toml Convert test to inline table with cmd/expected keys
registry/choose.toml Convert test to inline table with cmd/expected keys
registry/chisel.toml Convert test to inline table with cmd/expected keys
registry/chicken.toml Convert test to inline table with cmd/expected keys
registry/chezmoi.toml Convert test to inline table with cmd/expected keys
registry/checkov.toml Convert test to inline table with cmd/expected keys
registry/checkmake.toml Convert test to inline table with cmd/expected keys
registry/changie.toml Convert test to inline table with cmd/expected keys
registry/chamber.toml Convert test to inline table with cmd/expected keys
registry/cfssljson.toml Convert test to inline table with cmd/expected keys
registry/cf.toml Convert test to inline table with cmd/expected keys
registry/certstrap.toml Convert test to inline table with cmd/expected keys
registry/ccache.toml Convert test to inline table with cmd/expected keys
registry/carp.toml Convert test to inline table with cmd/expected keys
registry/cargo-make.toml Convert test to inline table with cmd/expected keys
registry/cargo-insta.toml Convert test to inline table with cmd/expected keys
registry/cargo-binstall.toml Convert test to inline table with cmd/expected keys
registry/carapace.toml Convert test to inline table with cmd/expected keys
registry/calicoctl.toml Convert test to inline table with cmd/expected keys
registry/calendarsync.toml Convert test to inline table with cmd/expected keys
registry/caddy.toml Convert test to inline table with cmd/expected keys
registry/cabal.toml Convert test to inline table with cmd/expected keys
registry/bun.toml Convert test to inline table with cmd/expected keys
registry/buildpack.toml Convert test to inline table with cmd/expected keys
registry/buildifier.toml Convert test to inline table with cmd/expected keys
registry/buf.toml Convert test to inline table with cmd/expected keys
registry/btrace.toml Convert test to inline table with cmd/expected keys
registry/btop.toml Convert test to inline table with cmd/expected keys (complex quoting)
registry/brig.toml Convert test to inline table with cmd/expected keys
registry/bpkg.toml Convert test to inline table with cmd/expected keys
registry/boundary.toml Convert test to inline table with cmd/expected keys
registry/bottom.toml Convert test to inline table with cmd/expected keys
registry/bosh.toml Convert test to inline table with cmd/expected keys
registry/bosh-backup-and-restore.toml Convert test to inline table with cmd/expected keys
registry/borg.toml Convert test to inline table with cmd/expected keys
registry/bombardier.toml Convert test to inline table with cmd/expected keys
registry/boilerplate.toml Convert test to inline table with cmd/expected keys
registry/bob.toml Convert test to inline table with cmd/expected keys
registry/blender.toml Convert test to inline table with cmd/expected keys
registry/black.toml Convert test to inline table with cmd/expected keys
registry/bitwarden.toml Convert test to inline table with cmd/expected keys
registry/bitwarden-secrets-manager.toml Convert test to inline table with cmd/expected keys
registry/biome.toml Convert test to inline table with cmd/expected keys
registry/binnacle.toml Convert test to inline table with cmd/expected keys
registry/bibtex-tidy.toml Convert test to inline table with cmd/expected keys
registry/bfs.toml Convert test to inline table with cmd/expected keys
registry/bazelisk.toml Convert test to inline table with cmd/expected keys
registry/bazel.toml Convert test to inline table with cmd/expected keys
registry/bazel-watcher.toml Convert test to inline table with cmd/expected keys
registry/bats.toml Convert test to inline table with cmd/expected keys
registry/bat.toml Convert test to inline table with cmd/expected keys
registry/bat-extras.toml Convert test to inline table with cmd/expected keys
registry/bashbot.toml Convert test to inline table with cmd/expected keys
registry/balena.toml Convert test to inline table with cmd/expected keys
registry/babashka.toml Convert test to inline table with cmd/expected keys
registry/azure.toml Convert test to inline table with cmd/expected keys
registry/azure-kubelogin.toml Convert test to inline table with cmd/expected keys
registry/awsweeper.toml Convert test to inline table with cmd/expected keys
registry/awsrm.toml Convert test to inline table with cmd/expected keys
registry/awsls.toml Convert test to inline table with cmd/expected keys
registry/awsebcli.toml Convert test to inline table with cmd/expected keys
registry/awscli-local.toml Convert test to inline table with cmd/expected keys
registry/aws-sso.toml Convert test to inline table with cmd/expected keys
registry/aws-sam.toml Convert test to inline table with cmd/expected keys
registry/aws-nuke.toml Convert test to inline table with cmd/expected keys
registry/aws-iam-authenticator.toml Convert test to inline table with cmd/expected keys
registry/aws-copilot.toml Convert test to inline table with cmd/expected keys
registry/aws-cli.toml Convert test to inline table with cmd/expected keys
registry/auto-doc.toml Convert test to inline table with cmd/expected keys
registry/atuin.toml Convert test to inline table with cmd/expected keys
registry/atmos.toml Convert test to inline table with cmd/expected keys
registry/atlas.toml Convert test to inline table with cmd/expected keys
registry/atlas-community.toml Convert test to inline table with cmd/expected keys
registry/astro.toml Convert test to inline table with cmd/expected keys
registry/ast-grep.toml Convert test to inline table with cmd/expected keys
registry/assh.toml Convert test to inline table with cmd/expected keys
registry/asciidoctorj.toml Convert test to inline table with cmd/expected keys
registry/argocd.toml Convert test to inline table with cmd/expected keys
registry/argo.toml Convert test to inline table with cmd/expected keys
registry/argo-rollouts.toml Convert test to inline table with cmd/expected keys
registry/argc.toml Convert test to inline table with cmd/expected keys
registry/arduino.toml Convert test to inline table with cmd/expected keys
registry/aqua.toml Convert test to inline table with cmd/expected keys
registry/apollo-rover.toml Convert test to inline table with cmd/expected keys
registry/apollo-router.toml Convert test to inline table with cmd/expected keys
registry/apko.toml Convert test to inline table with cmd/expected keys
registry/ant.toml Convert test to inline table with cmd/expected keys
registry/ansible.toml Convert test to inline table with cmd/expected keys
registry/ansible-core.toml Convert test to inline table with cmd/expected keys
registry/android-sdk.toml Convert test to inline table with cmd/expected keys
registry/amp.toml Convert test to inline table with cmd/expected keys
registry/amazon-ecs-cli.toml Convert test to inline table with cmd/expected keys
registry/amazon-ecr-credential-helper.toml Convert test to inline table with cmd/expected keys
registry/amass.toml Convert test to inline table with cmd/expected keys
registry/alp.toml Convert test to inline table with cmd/expected keys
registry/allurectl.toml Convert test to inline table with cmd/expected keys
registry/allure.toml Convert test to inline table with cmd/expected keys
registry/aks-engine.toml Convert test to inline table with cmd/expected keys
registry/air.toml Convert test to inline table with cmd/expected keys
registry/aichat.toml Convert test to inline table with cmd/expected keys
registry/agebox.toml Convert test to inline table with cmd/expected keys
registry/age.toml Convert test to inline table with cmd/expected keys
registry/age-plugin-yubikey.toml Convert test to inline table with cmd/expected keys
registry/adr-tools.toml Convert test to inline table with cmd/expected keys
registry/actionlint.toml Convert test to inline table with cmd/expected keys
registry/action-validator.toml Convert test to inline table with cmd/expected keys
registry/act.toml Convert test to inline table with cmd/expected keys
registry/aapt2.toml Convert test to inline table with cmd/expected keys
registry/1password.toml Convert test to inline table with cmd/expected keys
build.rs Update registry parser to read test as a TOML table with cmd/expected keys

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

build.rs Outdated
Comment on lines +123 to +126
let t = t.as_table().unwrap();
(
t[0].as_str().unwrap().to_string(),
t[1].as_str().unwrap().to_string(),
t["cmd"].as_str().unwrap().to_string(),
t["expected"].as_str().unwrap().to_string(),
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unwrap() / table indexing here will panic with very little context if a registry entry has malformed test data. Prefer using get(..) plus expect(..) (or equivalent) with a message that includes the tool name/path and the missing field (e.g., "registry/<tool>.toml: test.cmd must be a string"), so failures are actionable.

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +10
test = { cmd = "cmake --version", expected = """
cmake version {{version}}

CMake suite maintained and supported by Kitware (kitware.com/cmake)."""]
CMake suite maintained and supported by Kitware (kitware.com/cmake).""" }
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses an inline table for test but embeds a multiline string for expected, which is harder to read/maintain and can be problematic with tools that assume inline tables are single-line. Consider switching just this case to a normal table form (e.g., [test] / test.cmd + test.expected) while keeping inline tables for the simple one-liners.

Copilot uses AI. Check for mistakes.
'''btop --version | sed -e 's/\x1b\[[0-9;]*m//g'''',
"btop version: {{version}}",
]
test = { cmd = '''btop --version | sed -e 's/\x1b\[[0-9;]*m//g'''', expected = "btop version: {{version}}" }
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cmd value’s quoting looks unbalanced ('''' at the end), which is likely invalid TOML (multi-line literal strings should close with '''). Please fix the quoting so it parses unambiguously (e.g., use a basic string with escaping, or ensure the literal string delimiter is exactly ''' ... ''').

Copilot uses AI. Check for mistakes.
@jdx jdx enabled auto-merge (squash) February 8, 2026 14:26
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a great improvement, refactoring the test definitions in the registry from positional arrays to more descriptive inline tables. This significantly enhances the readability and maintainability of the tool definitions. The changes are applied consistently across the many registry files, and the build script is updated to match. I have one suggestion for build.rs to make the parsing logic more robust with better error messages, which will aid future maintenance and debugging.

build.rs Outdated
Comment on lines 123 to 127
let t = t.as_table().unwrap();
(
t[0].as_str().unwrap().to_string(),
t[1].as_str().unwrap().to_string(),
t["cmd"].as_str().unwrap().to_string(),
t["expected"].as_str().unwrap().to_string(),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The use of unwrap() and direct key indexing (t["cmd"]) can cause the build to panic with generic error messages if a test definition in a TOML file is malformed (e.g., missing keys or incorrect value types). This can make it difficult to identify the problematic file.

Using get() and and_then() with unwrap_or_else provides more descriptive panic messages, including the tool name, which will make debugging issues with registry files much easier in the future.

            let t = t.as_table().unwrap_or_else(|| panic!("[{short}] 'test' field must be a table"));
            let cmd = t
                .get("cmd")
                .and_then(|v| v.as_str())
                .unwrap_or_else(|| panic!("[{short}] 'test.cmd' must be a string"))
                .to_string();
            let expected = t
                .get("expected")
                .and_then(|v| v.as_str())
                .unwrap_or_else(|| panic!("[{short}] 'test.expected' must be a string"))
                .to_string();
            (cmd, expected)

Use unwrap_or_else with descriptive panic messages including the tool
name instead of bare unwrap() calls, making it easier to identify
which registry file has a malformed test definition.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Feb 8, 2026

Hyperfine Performance

mise x -- echo

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2026.2.7 x -- echo 21.9 ± 0.3 21.0 23.3 1.00
mise x -- echo 22.8 ± 2.1 21.6 65.4 1.04 ± 0.09

mise env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2026.2.7 env 21.4 ± 0.3 20.4 24.6 1.00
mise env 22.0 ± 0.3 21.0 22.7 1.03 ± 0.02

mise hook-env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2026.2.7 hook-env 22.3 ± 0.3 21.4 26.2 1.00
mise hook-env 22.8 ± 0.3 21.7 24.2 1.02 ± 0.02

mise ls

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2026.2.7 ls 20.2 ± 1.2 19.2 34.2 1.00
mise ls 20.5 ± 0.3 19.4 21.9 1.02 ± 0.06

xtasks/test/perf

Command mise-2026.2.7 mise Variance
install (cached) 122ms 124ms -1%
ls (cached) 73ms 74ms -1%
bin-paths (cached) 78ms 78ms +0%
task-ls (cached) 543ms 545ms +0%

@jdx jdx merged commit 41ac58d into main Feb 8, 2026
42 checks passed
@jdx jdx deleted the refactor-registry-test-format branch February 8, 2026 15:01
mise-en-dev added a commit that referenced this pull request Feb 9, 2026
### 🚀 Features

- **(node)** support package.json as idiomatic version file by @jdx in
[#8059](#8059)
- **(ruby)** graduate precompiled ruby from experimental (gradual
rollout) by @jdx in [#8052](#8052)
- add --dry-run-code flag to exit non-zero when there is work to do by
@jdx in [#8063](#8063)

### 🐛 Bug Fixes

- **(core)** respect MISE_ARCH override in bun and erlang plugins by
@jdx in [#8062](#8062)
- **(hooks)** resolve 12 community-reported hooks issues by @jdx in
[#8058](#8058)
- accept key=value format in set/add subcommands by @jdx in
[#8053](#8053)

### 📚 Documentation

- bump action versions in GitHub Actions examples by @muzimuzhi in
[#8065](#8065)
- add opengraph meta tags by @jdx in
[#8066](#8066)

### 📦️ Dependency Updates

- upgrade toml to 0.9 and toml_edit to 0.24 (TOML 1.1) by @jdx in
[#8057](#8057)

### 📦 Registry

- add quicktype (npm:quicktype) by @zdunecki in
[#8054](#8054)
- use inline table for test definitions by @jdx in
[#8056](#8056)
lucasew pushed a commit to lucasew/CONTRIB-mise that referenced this pull request Feb 18, 2026
## Summary
- Changes registry test format from positional array to named inline
table fields
- Before: `test = ["bat --version", "bat {{version}}"]`
- After: `test = { cmd = "bat --version", expected = "bat {{version}}"
}`
- Updates `build.rs` to parse the new table format
- Updates `schema/mise-registry-tool.json` to match

## Test plan
- [x] All 510 registry TOML files validated with Python `tomllib`
- [x] `cargo check` passes
- [x] All pre-commit lints pass (taplo, cargo-check, etc.)
- [x] CI passes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Large-scale data-format change across many registry entries; any
missed conversion or downstream expectation of the old array shape could
break registry validation or generated code.
> 
> **Overview**
> Standardizes registry `test` definitions by migrating from positional
arrays (e.g. `[cmd, expected]`) to an inline TOML table `{ cmd = ...,
expected = ... }` across the registry files.
> 
> Updates `build.rs` registry code generation to parse the new table
format, and updates `schema/mise-registry-tool.json` to validate the new
`test` object shape (required `cmd`/`expected`, no extra fields).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
64d6cb5. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
lucasew pushed a commit to lucasew/CONTRIB-mise that referenced this pull request Feb 18, 2026
### 🚀 Features

- **(node)** support package.json as idiomatic version file by @jdx in
[jdx#8059](jdx#8059)
- **(ruby)** graduate precompiled ruby from experimental (gradual
rollout) by @jdx in [jdx#8052](jdx#8052)
- add --dry-run-code flag to exit non-zero when there is work to do by
@jdx in [jdx#8063](jdx#8063)

### 🐛 Bug Fixes

- **(core)** respect MISE_ARCH override in bun and erlang plugins by
@jdx in [jdx#8062](jdx#8062)
- **(hooks)** resolve 12 community-reported hooks issues by @jdx in
[jdx#8058](jdx#8058)
- accept key=value format in set/add subcommands by @jdx in
[jdx#8053](jdx#8053)

### 📚 Documentation

- bump action versions in GitHub Actions examples by @muzimuzhi in
[jdx#8065](jdx#8065)
- add opengraph meta tags by @jdx in
[jdx#8066](jdx#8066)

### 📦️ Dependency Updates

- upgrade toml to 0.9 and toml_edit to 0.24 (TOML 1.1) by @jdx in
[jdx#8057](jdx#8057)

### 📦 Registry

- add quicktype (npm:quicktype) by @zdunecki in
[jdx#8054](jdx#8054)
- use inline table for test definitions by @jdx in
[jdx#8056](jdx#8056)
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.

2 participants