libcros 0.6.4

A Rust library that provides easy-to-use functions for interacting with a Chrome device
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use libcros::cmdline::{read_cmdline, get_cmdline_value};

fn main() {
  let cmdline = read_cmdline();
  let root = get_cmdline_value("root");

  if cmdline.contains("cros_debug") {
    println!("true");
  } else {
    println!("false");
  }

  println!("{}", root);
}