Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deprecate init #886

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading