-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow passing e.g.
--user
args, don't use env-vars, refactor to str…
…uct (#31) * feat: allow passing additional args through SYSTEMCTL_ARGS e.g. `--user` args can now be passed through SYSTEMCTL_ARGS environment variable * chore: update Cargo.toml versions * refactor: struct SystemCtl instead of functions * refactor: SystemCtl struct: don't use Vecs Vecs were not necessary since Command.args() requires IntoIterator not Vec Unit required changes after refactor made tests pass to fit refactor, tests run locally * chore: bump version * style: add docs and fix clippy * Run cargo fmt Signed-off-by: Guillaume W. Bres <[email protected]> * feat: add `daemon-reload` command support * docs: include README.md into docs doc tests are failing * docs: update README and make doc tests pass I did not have `sshd` service but I had `ssh.service` * style: cargo fmt --------- Signed-off-by: Guillaume W. Bres <[email protected]> Co-authored-by: Guillaume W. Bres <[email protected]>
- Loading branch information
1 parent
035ca00
commit b304a97
Showing
3 changed files
with
401 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "systemctl" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
license = "MIT OR Apache-2.0" | ||
authors = ["Guillaume W. Bres <[email protected]>"] | ||
description = "Small crate to interact with systemd units" | ||
|
@@ -13,10 +13,11 @@ default = [] | |
serde = ["dep:serde"] | ||
|
||
[dependencies] | ||
strum = "0.25" | ||
strum_macros = "0.25" | ||
itertools = "0.11" | ||
strum = "0.26" | ||
strum_macros = "0.26" | ||
itertools = "0.13" | ||
serde = { version = "1.0", optional = true, default-features = false, features = ["derive"] } | ||
bon="2.3" | ||
|
||
[dev-dependencies] | ||
serde_json = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.