Skip to main content

Crate xianyun_cli

Crate xianyun_cli 

Source
Expand description

Library crate for the caproni CLI.

This mirrors the command tree wired up by Go’s cmd/factory.go (urfave/cli/v3) using clap’s derive API.

Exposed as a library (in addition to the caproni binary) so integration tests can exercise pure CLI-layer logic (clap parsing, command-tree structure, argument-independent helper functions like commands::update::build_repo_filter) directly, without spawning a subprocess for every assertion.

Modules§

buildinfo
Build-time version information, for caproni version’s output.
commands
Subcommand implementations for the caproni CLI.
drivers
Cluster driver and deployer registration.
exitcode
A small carrier for “this command finished, but report a specific non-zero exit code” – the equivalent of Go’s cli.Exit("", code) (urfave/cli/v3’s cli.ExitCoder).
hooks
The caproni root command’s Before/After hook equivalents.

Structs§

Cli
GitLab Kubernetes Development Kit.

Enums§

Commands
Top-level subcommands, matching cmd/factory.go’s app.Commands slice.