fn count_pm() -> Option<usize> {
        let pm_output = Command::new("pm")
            .args(&["list", "packages"])
            .stdout(Stdio::piped())
            .output()
            .unwrap();

        extra::count_lines(
            String::from_utf8(pm_output.stdout)
                .expect("ERROR: \"pm list packages\" output was not valid UTF-8"),
        )
    }
/// Returns the number of installed apps for the system
/// Includes all apps ( user + system )
Returns the number of installed apps for the system
Includes all apps ( user + system )
Returns the number of installed apps for the system Includes all apps ( user + system )
fn count_pm() -> Option<usize> {
        let pm_output = Command::new("pm")
            .args(&["list", "packages"])
            .stdout(Stdio::piped())
            .output()
            .unwrap();
        extra::count_lines(
            String::from_utf8(pm_output.stdout)
                .expect("ERROR: \"pm list packages\" output was not valid UTF-8"),
        )
    }
fn count_pm ( ) -> Option < usize > { let pm_output = Command :: new ( " " ) . args ( & [ " " , " " ] ) . stdout ( Stdio :: piped ( ) ) . output ( ) . unwrap ( ) ; extra :: count_lines ( String :: from_utf8 ( pm_output . stdout ) . expect ( " \" \" " ) , ) }
Returns the number of installed apps for the system
Includes all apps ( user + system )
Returns the number of installed apps for the system Includes all apps ( user + system )