minor CLI refactor, bump to v0.0.4
This commit is contained in:
parent
b89c52db82
commit
04cdcf839f
|
@ -2443,7 +2443,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "serum-dev-tools"
|
||||
version = "0.0.3"
|
||||
version = "0.0.4"
|
||||
dependencies = [
|
||||
"anchor-client",
|
||||
"anyhow",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue