helm-rs 0.1.1

Typed Rust API for Helm 4: swappable backends, native chart, values and release reading
Documentation
use crate::backend::Command;

/// `helm version`: the version of the Helm binary.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
pub struct Version;

/// The build information of Helm (`internal/version.BuildInfo`, v4.3.0).
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct HelmVersion {
    /// The semantic version (the leading `v` is dropped).
    pub version: semver::Version,
    /// The git commit Helm was built from.
    pub git_commit: String,
    /// `clean` or `dirty`; empty when the build did not record it.
    pub git_tree_state: String,
    /// The Go toolchain version.
    pub go_version: String,
}

impl Command for Version {
    type Output = HelmVersion;
}