···209209}
210210211211fn command_list(dir: PathBuf, all: bool, count: usize) -> Result<()> {
212212- let workspace = Workspace::from_path(dir).expect("Unable to find .tsk dir");
212212+ let workspace = Workspace::from_path(dir)?;
213213 let stack = if all {
214214 workspace.read_stack()?
215215 } else {
···268268}
269269270270fn command_find(dir: PathBuf, full_id: bool) -> Result<()> {
271271- let id = Workspace::from_path(dir).unwrap().search(None).unwrap();
271271+ let id = Workspace::from_path(dir)?.search(None)?;
272272 if let Some(id) = id {
273273 if full_id {
274274 println!("{id}");
···284284}
285285286286fn command_reprioritize(dir: PathBuf, task_id: TaskId) -> Result<()> {
287287- // unwrap is safe here because clap will ensure we have at least one of these
288288- Workspace::from_path(dir)
289289- .unwrap()
290290- .reprioritize(task_id.into())
287287+ Workspace::from_path(dir)?.reprioritize(task_id.into())
291288}