pub struct CliAdapter { /* private fields */ }Expand description
Adapter for the CLI interface
Implementations§
Source§impl CliAdapter
impl CliAdapter
pub fn new(config_path: PathBuf) -> Self
Sourcepub fn init(&self, default_location: Option<String>, force: bool) -> Result<()>
pub fn init(&self, default_location: Option<String>, force: bool) -> Result<()>
Initialize a new configuration
Sourcepub fn add_dependency(
&self,
name: String,
repository_url: String,
revision: String,
target_location: String,
force: bool,
) -> Result<()>
pub fn add_dependency( &self, name: String, repository_url: String, revision: String, target_location: String, force: bool, ) -> Result<()>
Add a new dependency
Sourcepub fn include_paths(
&self,
dependency_name: String,
paths: Vec<String>,
force: bool,
) -> Result<()>
pub fn include_paths( &self, dependency_name: String, paths: Vec<String>, force: bool, ) -> Result<()>
Include paths in a dependency
Auto Trait Implementations§
impl Freeze for CliAdapter
impl RefUnwindSafe for CliAdapter
impl Send for CliAdapter
impl Sync for CliAdapter
impl Unpin for CliAdapter
impl UnsafeUnpin for CliAdapter
impl UnwindSafe for CliAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more