Skip to main content

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	/// Tasks directory relative to the workspace (defaults to tasks).
12	pub tasks: Option<NativePath>,
13	/// Tasks directory outside the workspace, expressed relative to it.
14	pub detached_tasks: Option<NativePath>,
15	/// Limit task participants to discovered projects.
16	#[serde(default)]
17	pub tracked_only: bool,
18	/// Initial repository or directory roots. Defaults to projects/ when omitted.
19	#[serde(default)]
20	pub track: Vec<NativePath>,
21}