workyard_application/actions/init/input.rs
1use schemars::JsonSchema;
2use serde::Deserialize;
3use trine::NativePath;
4
5/// Workspace directory and relative location for task worktrees.
6#[derive(Deserialize, JsonSchema)]
7#[serde(deny_unknown_fields)]
8pub struct InitInput {
9 /// Workspace directory (defaults to the current directory).
10 pub directory: Option<NativePath>,
11 /// Optional heading for an embedding application.
12 pub display_name: Option<String>,
13 /// Display-only command prefix for help and suggestions.
14 pub invocation_prefix: Option<String>,
15 /// Tasks directory relative to the workspace (defaults to tasks).
16 pub tasks: Option<NativePath>,
17 /// Tasks directory outside the workspace, expressed relative to it.
18 pub detached_tasks: Option<NativePath>,
19 /// Limit task participants to discovered projects.
20 #[serde(default)]
21 pub tracked_only: bool,
22 /// Initial repository or directory roots. Defaults to projects/ when omitted.
23 #[serde(default)]
24 pub track: Vec<NativePath>,
25}