Skip to content

Commit

Permalink
feat: deprecate init (#886)
Browse files Browse the repository at this point in the history
feat: depreicate init
  • Loading branch information
0xJepsen authored Feb 14, 2024
1 parent 01841ba commit 5827a3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 142 deletions.
120 changes: 0 additions & 120 deletions bin/init.rs

This file was deleted.

23 changes: 1 addition & 22 deletions bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ use crate::fork::ForkConfig;

mod bind;
mod fork;
mod init;

/// Represents command-line arguments passed to the `Arbiter` tool.
#[derive(Parser)]
Expand Down Expand Up @@ -74,17 +73,7 @@ pub enum ArbiterError {
enum Commands {
/// Represents the `Bind` subcommand.
Bind,

/// Represents the `Init` subcommand to initialize a simulation.
Init {
/// The name of the simulation to be initialized.
#[clap(index = 1)]
simulation_name: String,
/// Flag to indicate if git should be skipped.
#[clap(long)]
no_git: bool,
},

/// Represents the `Fork` subcommand.
Fork {
/// The name of the config file used to configure the fork.
#[clap(index = 1)]
Expand All @@ -107,16 +96,6 @@ fn main() -> Result<(), ArbiterError> {
let args = Args::parse();

match &args.command {
Some(Commands::Init {
simulation_name,
no_git,
}) => {
println!("Initializing Arbiter project...");
init::init_project(simulation_name)?;
if *no_git {
init::remove_git()?;
}
}
Some(Commands::Bind) => {
println!("Generating bindings...");
bind::forge_bind()?;
Expand Down

0 comments on commit 5827a3d

Please sign in to comment.