workyard-application 0.1.2

Task actions and interface contracts for Workyard
Documentation
use schemars::JsonSchema;
use serde::Deserialize;
use trine::NativePath;

/// Workspace directory and relative location for task worktrees.
#[derive(Deserialize, JsonSchema)]
#[serde(deny_unknown_fields)]
pub struct InitInput {
	/// Workspace directory (defaults to the current directory).
	pub directory: Option<NativePath>,
	/// Optional heading for an embedding application.
	pub display_name: Option<String>,
	/// Display-only command prefix for help and suggestions.
	pub invocation_prefix: Option<String>,
	/// Tasks directory relative to the workspace (defaults to tasks).
	pub tasks: Option<NativePath>,
	/// Tasks directory outside the workspace, expressed relative to it.
	pub detached_tasks: Option<NativePath>,
	/// Limit task participants to discovered projects.
	#[serde(default)]
	pub tracked_only: bool,
	/// Initial repository or directory roots. Defaults to projects/ when omitted.
	#[serde(default)]
	pub track: Vec<NativePath>,
}