Skip to content

Commit

Permalink
Changed the schedule type to snake case to support continuous_stable
Browse files Browse the repository at this point in the history
Summary: So we can use `ContinuousStable` as `continuous_stable`

Differential Revision: D52874640

fbshipit-source-id: 811aeabd09a71fab9f7830d845bcc5708ec860e0
  • Loading branch information
Pingchuan Liu authored and facebook-github-bot committed Jan 20, 2024
1 parent 8e968f8 commit 114d14a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions td_util/src/schedules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@ use serde::Serialize;
Eq,
Hash
)]
#[display(style = "lowercase")]
#[serde(rename_all = "lowercase")]
/// Use snake_case so we can use the continuous_stable schedule type
#[display(style = "snake_case")]
#[clap(rename_all = "snake_case")]
pub enum ScheduleType {
#[default]
#[serde(rename = "diff")]
Diff,
#[serde(rename = "continuous")]
Continuous,
#[serde(rename = "continuous_stable")]
ContinuousStable,
#[serde(rename = "landcastle")]
Landcastle, // Should this be just "land"?
}

0 comments on commit 114d14a

Please sign in to comment.