mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-02 15:04:18 -06:00
add basic version of oizys utils lock
This commit is contained in:
parent
6aba19a3b2
commit
7a2102abb3
1 changed files with 12 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
## nix begat oizys
|
## nix begat oizys
|
||||||
import std/[os, osproc, sequtils, strformat, strutils, tables]
|
import std/[os, osproc, sequtils, strformat, strutils, tables]
|
||||||
import hwylterm, hwylterm/[hwylcli]
|
import hwylterm, hwylterm/[hwylcli]
|
||||||
import oizys/[context, github, nix, logging, utils]
|
import oizys/[context, github, nix, logging, utils, exec]
|
||||||
|
|
||||||
proc checkExes() =
|
proc checkExes() =
|
||||||
if findExe("nix") == "":
|
if findExe("nix") == "":
|
||||||
|
@ -185,3 +185,14 @@ hwylCli:
|
||||||
T seq[string]
|
T seq[string]
|
||||||
run:
|
run:
|
||||||
checkForCache(installables, cache)
|
checkForCache(installables, cache)
|
||||||
|
|
||||||
|
[lock]
|
||||||
|
... """
|
||||||
|
check lock status for duplicates
|
||||||
|
|
||||||
|
currently just runs `jq < flake.lock '.nodes | keys[] | select(contains("_"))' -r`
|
||||||
|
"""
|
||||||
|
run:
|
||||||
|
# use absolute value for flake.lock?
|
||||||
|
quitWithCmd("""jq '.nodes | keys[] | select(contains("_"))' -r flake.lock""")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue