-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrepo.rs
More file actions
48 lines (43 loc) · 1.32 KB
/
repo.rs
File metadata and controls
48 lines (43 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use clap::{Args, ValueHint};
use crate::{
cli::ChartSourceTypeArg,
constants::{HELM_REPO_URL_DEV, HELM_REPO_URL_STABLE, HELM_REPO_URL_TEST},
};
#[derive(Debug, Args)]
#[command(next_help_heading = "Helm repository options")]
pub struct CommonRepoArgs {
/// Provide a custom Helm stable repository URL
#[arg(
long, value_name = "URL",
value_hint = ValueHint::Url,
default_value = HELM_REPO_URL_STABLE,
global = true
)]
pub helm_repo_stable: String,
/// Provide a custom Helm test repository URL
#[arg(
long, value_name = "URL",
value_hint = ValueHint::Url,
default_value = HELM_REPO_URL_TEST,
global = true
)]
pub helm_repo_test: String,
/// Provide a custom Helm dev repository URL
#[arg(
long,
value_name = "URL",
value_hint = ValueHint::Url,
default_value = HELM_REPO_URL_DEV,
global = true
)]
pub helm_repo_dev: String,
/// Source the charts from either a OCI registry or from index.yaml-based repositories.
#[arg(
long,
long_help = "Source the charts from either a OCI registry or from index.yaml-based repositories.",
value_enum,
default_value_t = Default::default(),
global = true
)]
pub chart_source: ChartSourceTypeArg,
}