use crate::app::Snapshot;
use crate::cli_outbound::Cli;
use crate::config_edit::brazen::BzRunner;
use std::path::PathBuf;
use std::sync::Arc;
#[derive(Clone)]
pub struct Deps {
pub lernie: Cli,
pub bl: Cli,
pub state_root: PathBuf,
pub yog_binary: PathBuf,
pub world: crate::xdg::Env,
pub home: PathBuf,
pub yog_data_root: PathBuf,
pub balls_state_root: PathBuf,
pub snapshot: Arc<Snapshot>,
pub mint_seed: u64,
}
impl Deps {
pub fn bound(&self, workspace: &std::path::Path) -> crate::actions::verbs::Bound {
crate::actions::verbs::Bound::at(&self.lernie, &self.world, workspace)
}
pub fn provider_rows(&self) -> Vec<String> {
crate::config_edit::brazen::row_names(
&crate::config_edit::brazen::RealBzRunner::resolve(&self.world).providers(),
)
}
}