Skip to content

Commit

Permalink
feat(common): add building EcsState (#1752)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazy authored Apr 23, 2024
1 parent b84ea8f commit 90bd111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/src/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub enum State {
#[strum(ascii_case_insensitive)]
pub enum EcsState {
Pending,
Building,
Running,
#[strum(serialize = "in progress")]
InProgress,
Expand Down
1 change: 1 addition & 0 deletions common/src/models/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl EcsState {
pub fn get_color(&self) -> &str {
match self {
EcsState::Pending => "dark_yellow",
EcsState::Building => "yellow",
EcsState::InProgress => "cyan",
EcsState::Running => "green",
EcsState::Stopped => "dark_blue",
Expand Down

0 comments on commit 90bd111

Please sign in to comment.