From bb2c579df206e51d43833544d114f321423c997c Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 9 Apr 2026 04:40:50 +0300 Subject: feat(cli): support labels when creating tabs and workspaces --- src/api/schema.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/api') diff --git a/src/api/schema.rs b/src/api/schema.rs index 568a276b..42a9c259 100644 --- a/src/api/schema.rs +++ b/src/api/schema.rs @@ -93,6 +93,8 @@ pub struct WorkspaceCreateParams { pub cwd: Option, #[serde(default)] pub focus: bool, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub label: Option, } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] @@ -109,6 +111,8 @@ pub struct TabCreateParams { pub cwd: Option, #[serde(default)] pub focus: bool, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub label: Option, } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] @@ -688,6 +692,7 @@ mod tests { method: Method::WorkspaceCreate(WorkspaceCreateParams { cwd: Some("/tmp".into()), focus: true, + label: Some("api".into()), }), }; -- cgit v1.2.3