Skip to main content

helm_rs/command/
mod.rs

1//! Typed Helm commands, one file per group. Each command is a plain struct implementing
2//! [`Command`](crate::backend::Command); backends implement
3//! [`Execute`](crate::backend::Execute) for the ones they support.
4//!
5//! Each command and each option group (such as [`ChartPathOptions`]) has a derived `bon` builder:
6//! `Command::builder(required...)`, one setter per flag, `.build()`. A required argument cannot
7//! be left out:
8//!
9//! ```compile_fail,E0061
10//! use helm_rs::command::{Install, ReleaseName};
11//!
12//! let _ = Install::builder(ReleaseName::Generated);
13//! ```
14
15mod builder;
16mod chart_ref;
17mod dependency;
18mod env;
19mod fetch;
20mod plugin;
21mod registry;
22mod release;
23mod render;
24mod repo;
25mod search;
26mod show;
27mod version;
28
29pub(crate) use builder::builder_collections;
30pub use chart_ref::{ChartPathOptions, ChartRef};
31pub use dependency::{
32    DependencyBuild, DependencyList, DependencyListing, DependencyOptions, DependencyRow,
33    DependencyStatus, DependencyUpdate,
34};
35pub use env::Env;
36pub use fetch::{ChartVerification, Pull, Pulled, Push, RegistryArtifact, Verify};
37pub use plugin::{
38    Passphrase, Plugin, PluginInstall, PluginInstalled, PluginList, PluginPackage, PluginUninstall,
39    PluginUpdate, PluginVerification, PluginVerify,
40};
41pub use registry::{RegistryLogin, RegistryLogout};
42pub use release::{
43    Cascade, DryRun, Force, GetAll, GetHooks, GetManifest, GetMetadata, GetNotes, GetValues,
44    History, HistoryEntry, Install, List, ListItem, ReleaseMetadata, ReleaseName, Rollback,
45    ServerSide, Status, Test, Uninstall, Upgrade, ValuesMode, WaitStrategy,
46};
47pub use render::{
48    Create, Lint, LintMessage, LintReport, LintSummary, LintedChart, Package, Severity, Template,
49    Templated,
50};
51pub use repo::{RepoAdd, RepoIndex, RepoList, RepoRemove, RepoUpdate, Repository};
52pub use search::{HubChart, HubRepository, RepoChart, SearchHub, SearchRepo};
53pub use show::{ChartInfo, ShowAll, ShowChart, ShowCrds, ShowReadme, ShowValues};
54pub use version::{HelmVersion, Version};
55
56#[cfg(test)]
57mod tests;