mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2025-01-01 15:39:20 +00:00
Improve output
This commit is contained in:
parent
296e290922
commit
693e60a12e
1 changed files with 6 additions and 6 deletions
|
@ -22,13 +22,13 @@ def rpm_ostree_packages(output_dir):
|
||||||
|
|
||||||
file = output_dir / "rpm-ostree.adoc"
|
file = output_dir / "rpm-ostree.adoc"
|
||||||
with file.open("w") as f:
|
with file.open("w") as f:
|
||||||
f.write("== Removed:\n")
|
f.write("== Removed\n")
|
||||||
for p in removals:
|
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:
|
for p in additions:
|
||||||
f.write(p + "\n")
|
f.write(f"* {p}\n")
|
||||||
|
|
||||||
def npm_packages(output_dir):
|
def npm_packages(output_dir):
|
||||||
out = $(npm list --json -g)
|
out = $(npm list --json -g)
|
||||||
|
@ -61,7 +61,7 @@ def pipx_packages(output_dir):
|
||||||
package_injections = injections[ind]
|
package_injections = injections[ind]
|
||||||
if package_injections is not None:
|
if package_injections is not None:
|
||||||
for injec in package_injections:
|
for injec in package_injections:
|
||||||
f.write(injec + "\n")
|
f.write(f"* {injec}\n")
|
||||||
|
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ output_dir.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
rpm_ostree_packages(output_dir)
|
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
|
cargo install --list | rg '(.+) .+:.*' -r '$1' >@(output_dir)/cargo.txt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue