workyard-application 0.1.3

Task actions and interface contracts for Workyard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::presentation::cli::{completion, project_bindings};
use trine::cli::Bindings;

pub(in super::super) fn bindings() -> Bindings {
	let bindings = Bindings::new().positional("task").complete_candidates(
		"task",
		Some("Tasks"),
		completion::tasks::suggest,
	);

	let bindings = bindings
		.option("remove", "remove")
		.complete_group("remove", "Participants", completion::task_members)
		.option("yes", "yes")
		.option("force", "force");

	project_bindings(bindings)
}