aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-04-09 04:40:50 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-04-09 04:42:35 +0300
commitbb2c579df206e51d43833544d114f321423c997c (patch)
treea26c6702e048f31429ebaa260ee40c3c2b111d3e /src/api/schema.rs
parent5460a9601ea8dd3d05e64e97040c71c6be29172b (diff)
feat(cli): support labels when creating tabs and workspaces
Diffstat (limited to 'src/api/schema.rs')
-rw-r--r--src/api/schema.rs5
1 files changed, 5 insertions, 0 deletions
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<String>,
#[serde(default)]
pub focus: bool,
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ pub label: Option<String>,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
@@ -109,6 +111,8 @@ pub struct TabCreateParams {
pub cwd: Option<String>,
#[serde(default)]
pub focus: bool,
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ pub label: Option<String>,
}
#[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()),
}),
};