mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-22 23:35:51 -06:00
add escapehatch to oizys update
This commit is contained in:
parent
610a2f1db1
commit
f27d9f9675
1 changed files with 3 additions and 2 deletions
|
@ -156,9 +156,8 @@ hwylCli:
|
||||||
flags:
|
flags:
|
||||||
^yes
|
^yes
|
||||||
preview:
|
preview:
|
||||||
- p
|
|
||||||
T bool
|
|
||||||
? "show preview and exit"
|
? "show preview and exit"
|
||||||
|
- p
|
||||||
run:
|
run:
|
||||||
let hosts = getHosts()
|
let hosts = getHosts()
|
||||||
if hosts.len > 1: fatalQuit "operation only supports one host"
|
if hosts.len > 1: fatalQuit "operation only supports one host"
|
||||||
|
@ -166,6 +165,8 @@ hwylCli:
|
||||||
echo fmt"run created at: {run.created_at}"
|
echo fmt"run created at: {run.created_at}"
|
||||||
echo "nvd diff:\n", getUpdateSummary(run.id, hosts[0])
|
echo "nvd diff:\n", getUpdateSummary(run.id, hosts[0])
|
||||||
if preview: quit 0
|
if preview: quit 0
|
||||||
|
if not isLocal(): fatalQuit bb"[b]oizys update[/] only supported for local oizys flakes"
|
||||||
|
if dirExists(getFlake() / ".jj"): fatalQuit bb"[b]oizys update[/] does not support jujustu repos yet"
|
||||||
if yes or confirm("Proceed with system update?"):
|
if yes or confirm("Proceed with system update?"):
|
||||||
updateRepo()
|
updateRepo()
|
||||||
nixosRebuild(NixosRebuildSubcmd.switch)
|
nixosRebuild(NixosRebuildSubcmd.switch)
|
||||||
|
|
Loading…
Add table
Reference in a new issue