workyard_application/actions/amend/input.rs
1use crate::contracts::RepositoryInput;
2use schemars::JsonSchema;
3use serde::Deserialize;
4use trine::NativePath;
5
6/// Task, project selections and consent options for changing membership.
7#[derive(Deserialize, JsonSchema)]
8#[serde(deny_unknown_fields)]
9pub struct AmendInput {
10 /// Task selected for this operation.
11 pub task: String,
12 /// Tracked project references or explicit repository paths.
13 #[serde(default)]
14 pub projects: Vec<NativePath>,
15 /// Backing repositories selected for membership.
16 #[serde(default)]
17 pub repositories: Vec<RepositoryInput>,
18 /// Task participant names to remove. Repeat to remove several in one amendment.
19 #[serde(default)]
20 pub remove: Vec<String>,
21 /// Skip confirmation when removing clean participants.
22 #[serde(default)]
23 pub yes: bool,
24 /// Discard disclosed changes in the selected worktrees and skip confirmation.
25 #[serde(default)]
26 pub force: bool,
27 /// Explicit workspace directory containing .workyard.
28 pub workspace: Option<NativePath>,
29 /// Reuse an existing target branch when available.
30 #[serde(default)]
31 pub checkout: bool,
32 /// Skip fetching from remotes.
33 #[serde(default)]
34 pub no_fetch: bool,
35 /// Default remote for the supplied repositories.
36 pub remote: Option<String>,
37 /// Starting reference for new branches.
38 pub from: Option<String>,
39}