diff --git a/cli/Cargo.lock b/cli/Cargo.lock index 56aa2d5..9c80d84 100644 --- a/cli/Cargo.lock +++ b/cli/Cargo.lock @@ -2443,7 +2443,7 @@ dependencies = [ [[package]] name = "serum-dev-tools" -version = "0.0.3" +version = "0.0.4" dependencies = [ "anchor-client", "anyhow", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 9ffd9fc..f015c62 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "serum-dev-tools" -version = "0.0.3" +version = "0.0.4" edition = "2021" authors = ["Sayantan Karmakar "] homepage = "https://github.com/project-serum/serum-dev-tools" diff --git a/cli/src/commands/deploy.rs b/cli/src/commands/deploy.rs index e685643..9bebc83 100644 --- a/cli/src/commands/deploy.rs +++ b/cli/src/commands/deploy.rs @@ -14,7 +14,7 @@ use crate::{ pub fn deploy( cfg_override: &ConfigOverride, - cluster: Option, + cluster: Cluster, script: Option, ) -> Result<()> { with_config(cfg_override, |cfg| { @@ -22,7 +22,6 @@ pub fn deploy( return Err(DevToolError::NotInitialized.into()); } - let cluster = cluster.unwrap(); let cluster_url = cluster.url(); let provider_keypair = cfg.provider.wallet.to_string(); diff --git a/cli/src/lib.rs b/cli/src/lib.rs index a2f924d..f53b4ac 100644 --- a/cli/src/lib.rs +++ b/cli/src/lib.rs @@ -26,8 +26,10 @@ pub enum Command { Instance, /// Deploys the dex program to the specified cluster Deploy { - cluster: Option, + /// The cluster to deploy to + cluster: Cluster, + /// The script to run after deploying #[clap(long)] script: Option, },