diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-09 04:40:50 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-09 04:42:35 +0300 |
| commit | bb2c579df206e51d43833544d114f321423c997c (patch) | |
| tree | a26c6702e048f31429ebaa260ee40c3c2b111d3e /src/api/schema.rs | |
| parent | 5460a9601ea8dd3d05e64e97040c71c6be29172b (diff) | |
feat(cli): support labels when creating tabs and workspaces
Diffstat (limited to 'src/api/schema.rs')
| -rw-r--r-- | src/api/schema.rs | 5 |
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()), }), }; |
