pub struct PackageManagerClient { /* private fields */ }Implementations§
Source§impl PackageManagerClient
impl PackageManagerClient
pub fn new(manager: PackageManager) -> Self
pub const fn manager(&self) -> PackageManager
pub const fn name(&self) -> &'static str
pub const fn commands(&self) -> PackageManagerCommands
pub fn install_command( &self, project_directory: impl Into<PathBuf>, ) -> RunnerCommand
pub fn version_command(&self) -> RunnerCommand
pub fn add_production_command( &self, dependencies: &[&str], tag: &str, ) -> RunnerCommand
pub fn add_development_command( &self, dependencies: &[&str], tag: &str, ) -> RunnerCommand
pub fn update_production_command(&self, dependencies: &[&str]) -> RunnerCommand
pub fn update_development_command(&self, dependencies: &[&str]) -> RunnerCommand
pub fn delete_production_command(&self, dependencies: &[&str]) -> RunnerCommand
pub fn delete_development_command(&self, dependencies: &[&str]) -> RunnerCommand
pub fn raw_full_command(&self, command: impl AsRef<str>) -> String
Trait Implementations§
Source§impl Clone for PackageManagerClient
impl Clone for PackageManagerClient
Source§fn clone(&self) -> PackageManagerClient
fn clone(&self) -> PackageManagerClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackageManagerClient
impl Debug for PackageManagerClient
Source§impl From<NpmPackageManager> for PackageManagerClient
impl From<NpmPackageManager> for PackageManagerClient
Source§fn from(manager: NpmPackageManager) -> Self
fn from(manager: NpmPackageManager) -> Self
Converts to this type from the input type.
Source§impl From<PnpmPackageManager> for PackageManagerClient
impl From<PnpmPackageManager> for PackageManagerClient
Source§fn from(manager: PnpmPackageManager) -> Self
fn from(manager: PnpmPackageManager) -> Self
Converts to this type from the input type.
Source§impl From<YarnPackageManager> for PackageManagerClient
impl From<YarnPackageManager> for PackageManagerClient
Source§fn from(manager: YarnPackageManager) -> Self
fn from(manager: YarnPackageManager) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PackageManagerClient
impl PartialEq for PackageManagerClient
Source§fn eq(&self, other: &PackageManagerClient) -> bool
fn eq(&self, other: &PackageManagerClient) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PackageManagerClient
impl StructuralPartialEq for PackageManagerClient
Auto Trait Implementations§
impl Freeze for PackageManagerClient
impl RefUnwindSafe for PackageManagerClient
impl Send for PackageManagerClient
impl Sync for PackageManagerClient
impl Unpin for PackageManagerClient
impl UnsafeUnpin for PackageManagerClient
impl UnwindSafe for PackageManagerClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.