apm/cmd/move_ticket.rs
1use anyhow::Result;
2use std::path::Path;
3use apm_core::config::Config;
4
5pub fn run(root: &Path, ticket_id: &str, target: &str) -> Result<()> {
6 let config = Config::load(root)?;
7 let target_opt = if target == "-" { None } else { Some(target) };
8 let msg = apm_core::ticket::move_to_epic(root, &config, ticket_id, target_opt)?;
9 println!("{msg}");
10 Ok(())
11}