1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-12-29 20:13:43 +00:00

Improve output

This commit is contained in:
Mo8it 2022-04-24 16:14:31 +02:00
parent 296e290922
commit 693e60a12e

View file

@ -22,13 +22,13 @@ def rpm_ostree_packages(output_dir):
file = output_dir / "rpm-ostree.adoc"
with file.open("w") as f:
f.write("== Removed:\n")
f.write("== Removed\n")
for p in removals:
f.write(p + "\n")
f.write(f"* {p}\n")
f.write("\n== Added:\n")
f.write("\n== Added\n")
for p in additions:
f.write(p + "\n")
f.write(f"* {p}\n")
def npm_packages(output_dir):
out = $(npm list --json -g)
@ -61,7 +61,7 @@ def pipx_packages(output_dir):
package_injections = injections[ind]
if package_injections is not None:
for injec in package_injections:
f.write(injec + "\n")
f.write(f"* {injec}\n")
f.write("\n")
@ -70,7 +70,7 @@ output_dir.mkdir(parents=True, exist_ok=True)
rpm_ostree_packages(output_dir)
flatpak list --app --columns=name,application,origin >@(output_dir)/flatpak.txt
flatpak list --app --columns=name,application,origin >@(output_dir)/flatpak.csv
cargo install --list | rg '(.+) .+:.*' -r '$1' >@(output_dir)/cargo.txt