Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list_units function is private #1

Closed
rgwood opened this issue May 23, 2022 · 3 comments
Closed

list_units function is private #1

rgwood opened this issue May 23, 2022 · 3 comments

Comments

@rgwood
Copy link

rgwood commented May 23, 2022

Hi, thanks for making this library! I think it's really useful to have a simple Rust library for working with systemd.

I tried following the "Service enumeration" example in the README, but it fails because list_units() is not public:

error[E0603]: function `list_units` is private
  --> src/main.rs:6:28
   |
6  |     let units = systemctl::list_units(None, None);
   |                            ^^^^^^^^^^ private function
@gwbres
Copy link
Owner

gwbres commented May 30, 2022

hello @rgwood

sorry for the delayed response.
Indeed, I ran into the same "problem", I just pushed a new release.

@gwbres gwbres closed this as completed May 30, 2022
@beckend
Copy link

beckend commented Sep 8, 2022

Hello, it's still private, the source code says the same. https://github.com/gwbres/systemctl/blob/main/src/lib.rs#L96

@gwbres
Copy link
Owner

gwbres commented Sep 8, 2022

Hello, it's still private, the source code says the same. https://github.com/gwbres/systemctl/blob/main/src/lib.rs#L96

Hello @beckend
indeed, probably made a mistake here, I just fixed that

gwbres pushed a commit that referenced this issue Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants