Expand description
The ux command.
User experience (UX) utilities for the Zoi CLI.
This module contains types and functions for formatting output, providing hints to the user, and emitting machine-readable plans.
Structs§
- Explain
Item - An item in an explanation report.
- Explain
Report - A report explaining the reasons for certain actions or states.
- Plan
Json V1 - The standard JSON schema for Zoi execution plans.
- Preflight
Row - A single row in a preflight summary table.
- Preflight
Summary - A summary of preflight checks before an operation.
- Transaction
Summary - A summary of a transaction’s results.
Enums§
- Install
Origin - Classifies the source and method used to install a package.
Functions§
- classify_
source_ origin - Classifies the origin of a package based on its source string and the action being performed.
- emit_
plan_ json - Emits a plan in JSON format to stdout.
- emit_
plan_ json_ v1 - Emits a version 1 plan in JSON format to stdout.
- print_
explain - Prints an explanation report to the console.
- print_
preflight - Prints a preflight summary to the console.
- print_
transaction_ summary - Prints a transaction summary to the console.
- with_
failure_ hint - Wraps an error with a user-friendly hint if one is available for the given error message and command.