Skip to content

Commit

Permalink
fix(deployments): remove forking functionality (#147)
Browse files Browse the repository at this point in the history
Removed the fork functionality from the deployments
module, including associated files and references. This
streamlines the deployment options available within the
application.
  • Loading branch information
steebchen authored Dec 3, 2024
1 parent f72a523 commit b6ee123
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 141 deletions.
83 changes: 0 additions & 83 deletions cli/src/command/deployments/fork.rs

This file was deleted.

6 changes: 1 addition & 5 deletions cli/src/command/deployments/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ use colored::*;

use self::{
accounts::AccountsArgs, create::CreateArgs, delete::DeleteArgs, describe::DescribeArgs,
fork::ForkArgs, list::ListArgs, logs::LogsArgs, update::UpdateArgs,
list::ListArgs, logs::LogsArgs, update::UpdateArgs,
};

mod accounts;
mod create;
mod delete;
mod describe;
mod fork;
mod list;
mod logs;
mod services;
Expand All @@ -27,8 +26,6 @@ pub enum Deployments {
Delete(DeleteArgs),
#[command(about = "Update a deployment.")]
Update(UpdateArgs),
#[command(about = "Fork a deployment.")]
Fork(ForkArgs),
#[command(about = "Describe a deployment's configuration.")]
Describe(DescribeArgs),
#[command(about = "List all deployments.", aliases = ["ls"])]
Expand All @@ -45,7 +42,6 @@ impl Deployments {
Deployments::Create(args) => args.run().await,
Deployments::Delete(args) => args.run().await,
Deployments::Update(args) => args.run().await,
Deployments::Fork(args) => args.run().await,
Deployments::Describe(args) => args.run().await,
Deployments::List(args) => args.run().await,
Deployments::Logs(args) => args.run().await,
Expand Down
11 changes: 0 additions & 11 deletions cli/src/command/deployments/services/katana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ pub struct KatanaUpdateArgs {
pub node_args: NodeArgs,
}

#[derive(Debug, Args, serde::Serialize)]
#[command(next_help_heading = "Katana fork options")]
pub struct KatanaForkArgs {
#[arg(long, value_name = "fork_name")]
#[arg(help = "Specify the fork name")]
pub fork_name: String,
#[arg(long, value_name = "fork_block_number")]
#[arg(help = "Specify block number to fork. (latests if not provided)")]
pub fork_block_number: Option<u64>,
}

#[derive(Debug, Args, serde::Serialize)]
#[command(next_help_heading = "Katana account options")]
pub struct KatanaAccountArgs {}
11 changes: 1 addition & 10 deletions cli/src/command/deployments/services/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use clap::{Subcommand, ValueEnum};

use self::{
katana::{KatanaAccountArgs, KatanaCreateArgs, KatanaForkArgs, KatanaUpdateArgs},
katana::{KatanaAccountArgs, KatanaCreateArgs, KatanaUpdateArgs},
saya::{SayaCreateArgs, SayaUpdateArgs},
torii::{ToriiCreateArgs, ToriiUpdateArgs},
};
Expand Down Expand Up @@ -32,15 +32,6 @@ pub enum UpdateServiceCommands {
Saya(SayaUpdateArgs),
}

#[derive(Debug, Subcommand, serde::Serialize)]
#[serde(untagged)]
pub enum ForkServiceCommands {
#[command(about = "Katana deployment.")]
Katana(KatanaForkArgs),
// #[command(about = "Torii deployment.")]
// Torii(ToriiUpdateArgs),
}

#[derive(Debug, Subcommand, serde::Serialize)]
#[serde(untagged)]
pub enum KatanaAccountCommands {
Expand Down
20 changes: 0 additions & 20 deletions slot/src/graphql/deployments/fork.graphql

This file was deleted.

10 changes: 0 additions & 10 deletions slot/src/graphql/deployments/fork.rs

This file was deleted.

2 changes: 0 additions & 2 deletions slot/src/graphql/deployments/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod accounts;
mod create;
mod delete;
mod describe;
mod fork;
mod list;
mod logs;
mod update;
Expand All @@ -16,7 +15,6 @@ pub use accounts::*;
pub use create::*;
pub use delete::*;
pub use describe::*;
pub use fork::*;
pub use list::*;
pub use logs::*;
pub use update::*;

0 comments on commit b6ee123

Please sign in to comment.