Skip to content

Commit

Permalink
Add more tiers (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen authored Aug 20, 2024
1 parent 2288a9a commit 4bd1e85
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions cli/src/command/deployments/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ impl CreateArgs {

let tier = match &self.tier {
Tier::Basic => DeploymentTier::basic,
Tier::Rare => DeploymentTier::rare,
Tier::Epic => DeploymentTier::epic,
};

let request_body = CreateDeployment::build_query(Variables {
Expand Down
2 changes: 2 additions & 0 deletions cli/src/command/deployments/fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ impl ForkArgs {

let tier = match &self.tier {
Tier::Basic => DeploymentTier::basic,
Tier::Rare => DeploymentTier::rare,
Tier::Epic => DeploymentTier::epic,
};

let request_body = ForkDeployment::build_query(Variables {
Expand Down
2 changes: 2 additions & 0 deletions cli/src/command/deployments/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ impl Deployments {
#[derive(clap::ValueEnum, Clone, Debug, serde::Serialize)]
pub enum Tier {
Basic,
Rare,
Epic,
}
11 changes: 4 additions & 7 deletions cli/src/command/deployments/update.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![allow(clippy::enum_variant_names)]

use super::services::UpdateServiceCommands;
use crate::command::deployments::Tier;
use anyhow::Result;
use clap::Args;
use slot::api::Client;
Expand All @@ -13,13 +15,6 @@ use slot::graphql::deployments::update_deployment::{
use slot::graphql::deployments::{update_deployment::*, UpdateDeployment};
use slot::graphql::{GraphQLQuery, Response};

use super::services::UpdateServiceCommands;

#[derive(clap::ValueEnum, Clone, Debug, serde::Serialize)]
pub enum Tier {
Basic,
}

#[derive(Debug, Args)]
#[command(next_help_heading = "Update options")]
pub struct UpdateArgs {
Expand Down Expand Up @@ -59,6 +54,8 @@ impl UpdateArgs {

let tier = match &self.tier {
Tier::Basic => DeploymentTier::basic,
Tier::Rare => DeploymentTier::rare,
Tier::Epic => DeploymentTier::epic,
};

let request_body = UpdateDeployment::build_query(Variables {
Expand Down

0 comments on commit 4bd1e85

Please sign in to comment.