minor CLI refactor, bump to v0.0.4

This commit is contained in:
Sayantan Karmakar 2022-06-01 20:19:28 +05:30
parent b89c52db82
commit 04cdcf839f
4 changed files with 6 additions and 5 deletions

2
cli/Cargo.lock generated
View File

@ -2443,7 +2443,7 @@ dependencies = [
[[package]]
name = "serum-dev-tools"
version = "0.0.3"
version = "0.0.4"
dependencies = [
"anchor-client",
"anyhow",

View File

@ -1,6 +1,6 @@
[package]
name = "serum-dev-tools"
version = "0.0.3"
version = "0.0.4"
edition = "2021"
authors = ["Sayantan Karmakar <sayantankarmakar@outlook.com>"]
homepage = "https://github.com/project-serum/serum-dev-tools"

View File

@ -14,7 +14,7 @@ use crate::{
pub fn deploy(
cfg_override: &ConfigOverride,
cluster: Option<Cluster>,
cluster: Cluster,
script: Option<String>,
) -> 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();

View File

@ -26,8 +26,10 @@ pub enum Command {
Instance,
/// Deploys the dex program to the specified cluster
Deploy {
cluster: Option<Cluster>,
/// The cluster to deploy to
cluster: Cluster,
/// The script to run after deploying
#[clap(long)]
script: Option<String>,
},