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:
parent
3dc214df68
commit
25dbf27a18
1 changed files with 0 additions and 21 deletions
|
@ -47,21 +47,6 @@ def update_cargo():
|
||||||
press_to_exit()
|
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):
|
def main(input):
|
||||||
if input == "rpm-ostree":
|
if input == "rpm-ostree":
|
||||||
update_rpm_ostree()
|
update_rpm_ostree()
|
||||||
|
@ -69,12 +54,6 @@ def main(input):
|
||||||
update_flatpak()
|
update_flatpak()
|
||||||
elif input == "cargo":
|
elif input == "cargo":
|
||||||
update_cargo()
|
update_cargo()
|
||||||
elif input == "pipx":
|
|
||||||
update_pipx()
|
|
||||||
elif input == "nvim":
|
|
||||||
update_nvim()
|
|
||||||
elif input == "npm":
|
|
||||||
update_npm()
|
|
||||||
else:
|
else:
|
||||||
print(f"Input {input} not valid!")
|
print(f"Input {input} not valid!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue