twoliter
twoliter copied to clipboard
twoliter: refactor repetitive setup code
We are doing this too many times:
let project = project::load_or_find_project(self.project_path.clone()).await?;
let toolsdir = project.project_dir().join("build/tools");
install_tools(&toolsdir).await?;
@webern can you suggest a way to factor out the load_or_find_project and install_tools logic so we don't need to repeat for every command?
Originally posted by @bcressey in https://github.com/bottlerocket-os/twoliter/pull/230#discussion_r1610786772