diff --git a/cli/src/command/deployments/create.rs b/cli/src/command/deployments/create.rs index 3522a5a..9f60ad0 100644 --- a/cli/src/command/deployments/create.rs +++ b/cli/src/command/deployments/create.rs @@ -62,6 +62,7 @@ impl CreateArgs { katana: Some(KatanaCreateInput { provable: Some(config.provable), network: config.network.clone(), + saya: Some(config.saya), }), } } diff --git a/cli/src/command/deployments/services/katana.rs b/cli/src/command/deployments/services/katana.rs index 548be18..5cd9874 100644 --- a/cli/src/command/deployments/services/katana.rs +++ b/cli/src/command/deployments/services/katana.rs @@ -19,6 +19,12 @@ pub struct KatanaCreateArgs { #[arg(long, short, value_name = "network")] #[arg(help = "Network to use for the service. Only in provable mode.")] pub network: Option, + + #[arg(long, short, value_name = "saya")] + #[arg( + help = "Whether to start a saya instance alongside the provable Katana. Only in provable mode." + )] + pub saya: bool, } impl KatanaCreateArgs { @@ -29,6 +35,11 @@ impl KatanaCreateArgs { "The `network` option can only be supplied when `--provable` is enabled.", )); } + if self.saya && !self.provable { + return Err(anyhow!( + "The `saya` option can only be supplied when `--provable` is enabled.", + )); + } Ok(()) } } diff --git a/slot/schema.json b/slot/schema.json index 8b69517..fbb130b 100644 --- a/slot/schema.json +++ b/slot/schema.json @@ -11910,6 +11910,16 @@ "ofType": null } }, + { + "defaultValue": null, + "description": null, + "name": "saya", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, { "defaultValue": null, "description": null, @@ -21856,4 +21866,4 @@ ] } } -} +} \ No newline at end of file