Skip to content

Commit

Permalink
expose list_units() as public method
Browse files Browse the repository at this point in the history
  • Loading branch information
gwbres committed Sep 8, 2022
1 parent 06fee4e commit 39f5804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub fn exists (unit: &str) -> std::io::Result<bool> {
/// Returns list of units extracted from systemctl listing.
/// + type filter: optionnal --type filter
/// + state filter: optionnal --state filter
fn list_units (type_filter: Option<&str>, state_filter: Option<&str>) -> std::io::Result<Vec<String>> {
pub fn list_units (type_filter: Option<&str>, state_filter: Option<&str>) -> std::io::Result<Vec<String>> {
let mut args = vec!["list-unit-files"];
if let Some(filter) = type_filter {
args.push("--type");
Expand Down

0 comments on commit 39f5804

Please sign in to comment.