1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00

Move some updates to ansible

This commit is contained in:
Mo 2022-07-30 20:50:06 +02:00
parent 3dc214df68
commit 25dbf27a18

View file

@ -47,21 +47,6 @@ def update_cargo():
press_to_exit()
def update_pipx():
lines = cap_live_lines("pipx upgrade-all --include-injected")
if "did not change" not in out[-1].lower():
press_to_exit()
def update_nvim():
run('nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync"')
def update_npm():
run("npm update --location=global")
def main(input):
if input == "rpm-ostree":
update_rpm_ostree()
@ -69,12 +54,6 @@ def main(input):
update_flatpak()
elif input == "cargo":
update_cargo()
elif input == "pipx":
update_pipx()
elif input == "nvim":
update_nvim()
elif input == "npm":
update_npm()
else:
print(f"Input {input} not valid!")