Skip to main content

Crate host_identity_cli

Crate host_identity_cli 

Source
Expand description

host-identity — command-line interface for the host-identity crate. Binary was renamed from hostid to avoid colliding with coreutils hostid(1); see crates/host-identity-cli/Cargo.toml for the [[bin]] name and the rationale.

This crate also exposes a small library surface so build tooling (the workspace xtask that generates man pages) can reuse the exact clap::Command definition the binary ships with. End users should depend on the host-identity library directly.

Structs§

Cli
Top-level command-line interface for the host-identity binary.

Constants§

VERSION
Crate version, re-exported so the workspace xtask can stamp the man page footer with the CLI crate’s version rather than its own.

Functions§

run
Parse argv and run the CLI, returning the process exit code.