workyard_application/
application.rs1use crate::actions::{amend, create, info, init, list, projects, recover, remove, status};
2use trine::application::Application;
3
4pub fn application() -> Result<Application, Box<dyn std::error::Error>> {
6 let mut app = Application::new("workyard", env!("CARGO_PKG_VERSION"))?;
7
8 app.register(init::build_entry()?)?;
9 projects::register(&mut app)?;
10 app.register(create::build_entry()?)?;
11 app.register(amend::build_entry()?)?;
12 app.register(recover::build_entry()?)?;
13 app.register(remove::build_entry()?)?;
14 app.register(list::build_entry()?)?;
15 app.register(info::build_entry()?)?;
16 app.register(status::build_entry()?)?;
17
18 Ok(app)
19}