Code cleanup
This commit is contained in:
parent
b3b9231554
commit
72b5f977dc
2 changed files with 13 additions and 2 deletions
Binary file not shown.
|
@ -347,7 +347,7 @@ fn main() {
|
|||
// update_all();
|
||||
|
||||
|
||||
let matches = command!() // requires `cargo` feature
|
||||
let matches = command!()
|
||||
.arg(
|
||||
Arg::new("UPDATE_TOOL")
|
||||
.help("What updater to run")
|
||||
|
@ -371,34 +371,45 @@ fn main() {
|
|||
if args.contains(&"all") {
|
||||
update_all()
|
||||
}
|
||||
|
||||
if args.contains(&"apt") {
|
||||
update_apt()
|
||||
}
|
||||
|
||||
if args.contains(&"distrobox") {
|
||||
update_distrobox()
|
||||
}
|
||||
|
||||
if args.contains(&"dnf") {
|
||||
update_dnf()
|
||||
}
|
||||
|
||||
if args.contains(&"flatpak") {
|
||||
update_flatpak()
|
||||
}
|
||||
|
||||
if args.contains(&"pacman") {
|
||||
update_pacman()
|
||||
}
|
||||
|
||||
if args.contains(&"podman") {
|
||||
update_podman()
|
||||
}
|
||||
|
||||
if args.contains(&"python") {
|
||||
update_python()
|
||||
}
|
||||
|
||||
if args.contains(&"snap") {
|
||||
update_snap()
|
||||
}
|
||||
|
||||
if args.contains(&"urpmi") {
|
||||
update_urpmi()
|
||||
}
|
||||
|
||||
if args.contains(&"zypper") {
|
||||
update_zypper()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue