diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-26 06:44:52 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-26 06:54:51 -0400 |
commit | dd3406a9b60e1fb9308f1e68e247aa8f67e440b4 (patch) | |
tree | d1f65b05cde9b32b9345f8e4ccbea6dbb0060d83 /src/systemd/unit.rs | |
parent | 8d414d7b8fdcad0466f413419d37edc1ebf922d0 (diff) |
Add minimial unit details page.
Diffstat (limited to 'src/systemd/unit.rs')
-rw-r--r-- | src/systemd/unit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemd/unit.rs b/src/systemd/unit.rs index 22752cb..116ffdb 100644 --- a/src/systemd/unit.rs +++ b/src/systemd/unit.rs @@ -60,10 +60,10 @@ fn test_make_unit() { assert_eq!(None, make_unit(info)); } -pub fn get_units() -> io::Result<Vec<Unit>> { +pub fn get_units(filter: &str) -> io::Result<Vec<Unit>> { let mut units = Vec::new(); let status = try!(Command::new("systemctl") - .args(&["show", "*"]).output()); + .args(&["show", filter]).output()); let mut unit_info = HashMap::new(); for line in String::from_utf8_lossy(&status.stdout).split('\n') { |