$ show jdx/mise
mise is a unified CLI tool for managing development environments. It combines tool version management (like asdf), environment variable injection, task running, dotfiles management, system package bootstrapping, and OCI image building into a single command-line interface. The system is implemented in Rust as a workspace of multiple crates, with a plugin system based on Lua (vfox) and support for many backends (asdf, aqua, npm, cargo, pipx, Homebrew, etc.). It also includes supply-chain security features via Sigstore attestation verification and packslip signing. The architecture is a modular Rust CLI with async I/O (tokio), a plugin system for tool backends, a configuration layer that merges TOML files with environment variables, and a task runner with dependency graphs and file watching. Key entry points include the main binary (src/main.rs), CLI subcommands in src/cli/, backend implementations in src/backend/, and the Lua plugin runtime in crates/vfox/. External dependencies include GitHub API, npm registry, aqua registry, Sigstore TUF repositories, and various system package managers (apt, brew, dnf, etc.). The codebase demonstrates high craftsmanship with clean abstractions (Backend trait, TaskFileProvider, SingleReport), reusable utility crates (mise-util, mise-dotenv, mise-cache-core), and extensive testing (unit, integration, e2e). Notable subsystems include an interactive TOML editor with undo support, a comment-preserving document parser, a remote cache protocol with OIDC authentication, and a documentation showreel generator with custom animation and audio. The project is actively maintained with frequent commits, comprehensive CI/CD, and a large community (34k+ stars).
The LLM identified 5 files worth highlighting for reuse:
Implements Sigstore attestation bundle verification with a composable policy pattern (VerificationPolicy::any_identity().skip_tlog_unsafe().skip_sct()). Supports DSSE envelopes, GitHub artifact attestations, and SLSA signer identities. Includes trust-root fallback (embedded first, then TUF retry), raw certificate-chain validation via webpki, and nuanced handling of short-lived Fulcio certificates. The module is self-contained and could be extracted for use in other Rust projects needing software supply chain verification.
Provides a comment-preserving TOML document parser that maintains decor comments, inline tables, and structural formatting during edits. Supports undo/redo operations and specificity inference for config entries. The parser is designed for interactive editing (used by 'mise edit') and could be reused in any project requiring lossless TOML manipulation with a user-friendly editing experience.
A generic parallel execution utility that runs a set of tasks with bounded concurrency, collecting results and errors. It handles cancellation, progress reporting, and error aggregation. The pattern is reusable across any Rust project needing to execute multiple independent operations concurrently with a configurable limit on parallelism.
A standalone dotenv file parser that provides an iterator over key-value pairs with support for BOM detection, variable substitution tracking, and multi-line values. It handles edge cases like quoted values, comments, and export statements. The module is self-contained and could be extracted as a library for parsing .env files in any Rust project.
A comprehensive, portable shell test library providing assertion helpers (assert, assert_fail, assert_json, assert_contains, etc.), a timeout wrapper with fallback, JSON structural assertions using jq, directory assertions, and a background HTTP test server with port-file coordination. It is designed for end-to-end testing of CLI tools and could be reused in any shell-based test suite.