pub fn run_capture_stdout(&self, packages: &SelectedPackages<'_>) -> Result<Vec<u8>> {
        // Early return if we have no packages to run.
        if !packages.should_invoke() {
            info!("no packages to {}: exiting early", self.as_str());
            Ok(vec![])
        } else {
            let mut cargo = self.prepare_cargo(packages);
            cargo.args(&["--message-format", "json-render-diagnostics"]);
            Ok(cargo.run_with_output()?)
        }
    }
/// Runs this command on the selected packages, returning the standard output as a bytestring.
Runs this command on the selected packages, returning the standard output as a bytestring.
Runs this command on the selected packages returning the standard output as a bytestring .
pub fn run_capture_stdout(&self, packages: &SelectedPackages<'_>) -> Result<Vec<u8>> {
        // Early return if we have no packages to run.
        if !packages.should_invoke() {
            info!("no packages to {}: exiting early", self.as_str());
            Ok(vec![])
        } else {
            let mut cargo = self.prepare_cargo(packages);
            cargo.args(&["--message-format", "json-render-diagnostics"]);
            Ok(cargo.run_with_output()?)
        }
    }
pub fn run_capture_stdout ( & self , packages : & SelectedPackages < ' _ > ) -> Result < Vec < u8 > > { // Early return if we have no packages to run. if ! packages . should_invoke ( ) { info ! ( " " self as_str ( ) ) ; Ok ( vec ! [ ] ) } else { let mut cargo = self . prepare_cargo ( packages ) ; cargo . args ( & [ " " , " " ] ) ; Ok ( cargo . run_with_output ( ) ? ) } }
Runs this command on the selected packages, returning the standard output as a bytestring.
Runs this command on the selected packages returning the standard output as a bytestring .
&self
packages
&SelectedPackages<'_>