generated from PlexSheep/rs-base
Compare commits
2 commits
23c51ac1da
...
0c2f270336
Author | SHA1 | Date | |
---|---|---|---|
0c2f270336 | |||
9839b8b034 |
2 changed files with 7 additions and 0 deletions
|
@ -62,9 +62,11 @@ pub enum Commands {
|
||||||
message: Option<Vec<String>>,
|
message: Option<Vec<String>>,
|
||||||
|
|
||||||
/// generate and add a changelog
|
/// generate and add a changelog
|
||||||
|
#[arg(short, long)]
|
||||||
changelog: bool,
|
changelog: bool,
|
||||||
|
|
||||||
/// publish after releasing
|
/// publish after releasing
|
||||||
|
#[arg(short, long)]
|
||||||
publish: bool,
|
publish: bool,
|
||||||
},
|
},
|
||||||
/// Publish to a package registry
|
/// Publish to a package registry
|
||||||
|
|
|
@ -50,12 +50,16 @@ impl YamlConfigSection for Uses {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
|
#[serde(rename_all = "snake_case")]
|
||||||
pub enum Pass {
|
pub enum Pass {
|
||||||
/// pass specified as plainext
|
/// pass specified as plainext
|
||||||
|
#[serde(alias = "pass_text")]
|
||||||
Text(String),
|
Text(String),
|
||||||
/// pass to be loaded from an env var
|
/// pass to be loaded from an env var
|
||||||
|
#[serde(alias = "pass_env")]
|
||||||
Env(String),
|
Env(String),
|
||||||
/// pass to be loaded from a file
|
/// pass to be loaded from a file
|
||||||
|
#[serde(alias = "pass_file")]
|
||||||
File(PathBuf),
|
File(PathBuf),
|
||||||
}
|
}
|
||||||
impl Pass {
|
impl Pass {
|
||||||
|
@ -102,6 +106,7 @@ impl YamlConfigSection for ApiAuth {
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize)]
|
||||||
pub struct Api {
|
pub struct Api {
|
||||||
|
#[serde(alias = "type")]
|
||||||
pub server_type: ApiType,
|
pub server_type: ApiType,
|
||||||
pub endpoint: Url,
|
pub endpoint: Url,
|
||||||
/// May be left empty if the Api does not need auth or the auth is part of the
|
/// May be left empty if the Api does not need auth or the auth is part of the
|
||||||
|
|
Loading…
Add table
Reference in a new issue