Skip to content

Commit

Permalink
Merge pull request #158 from peridio/ENG-1755
Browse files Browse the repository at this point in the history
improve release help text
  • Loading branch information
andresperi authored May 9, 2024
2 parents 1913855 + a436d29 commit 03d349a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "peridio-cli"
description = "Peridio CLI"
homepage = "https://peridio.com"
repository = "https://github.com/peridio/peridio-cli"
version = "0.20.0"
version = "0.20.1"
edition = "2021"

[dependencies]
Expand Down
10 changes: 3 additions & 7 deletions src/api/releases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ pub struct CreateCommand {
/// NOTE: 1 is a special value in that it represents 100% and once a release is updated to this value, the phase value can never be changed again.
///
/// A release with a phase_value not equal to 1 is considered "phased".
///
/// NOTE: There can only ever be a single release that is phased at a time within a cohort. Because of this, if there is already a phased release, it must be "completed" by setting the phase to 1.
#[arg(
long,
conflicts_with = "phase_tags",
Expand Down Expand Up @@ -246,12 +244,12 @@ pub struct UpdateCommand {
#[arg(long)]
pub next_release_prn: Option<String>,

/// Enum: "tags" "numeric"
///
/// Describes if this release is using tag or numeric based phasing. tags or phase value for resolution
///
/// - tags - Phases rollout of the release according to the phase_tags field.
///
/// - numeric - Phases rollout of the release according to the phase_value field.
#[arg(long)]
#[arg(long, value_parser(clap::builder::PossibleValuesParser::new(["tags", "numeric"])))]
pub phase_mode: Option<String>,

/// Limits by tags the devices that are allowed to update to this release.
Expand All @@ -268,8 +266,6 @@ pub struct UpdateCommand {
/// NOTE: 1 is a special value in that it represents 100% and once a release is updated to this value, the phase value can never be changed again.
///
/// A release with a phase_value not equal to 1 is considered "phased".
///
/// NOTE: There can only ever be a single release that is phased at a time within a cohort. Because of this, if there is already a phased release, it must be "completed" by setting the phase to 1.
#[arg(long)]
pub phase_value: Option<f64>,

Expand Down

0 comments on commit 03d349a

Please sign in to comment.