mirror of
https://github.com/JaxTheWolf/nix-shells.git
synced 2026-03-31 21:20:23 +02:00
Add justfile
Update lock Add treefmt
This commit is contained in:
21
Justfile
Normal file
21
Justfile
Normal file
@@ -0,0 +1,21 @@
|
||||
update:
|
||||
#!/usr/bin/env bash
|
||||
echo "Starting update scan..."
|
||||
for dir in */; do
|
||||
dirname=${dir%/}
|
||||
if [ -f "$dir/flake.nix" ]; then
|
||||
echo "-------------------------------------------"
|
||||
echo "Updating flake in: $dirname"
|
||||
(cd "$dir" && nix flake update)
|
||||
else
|
||||
echo "Skipping $dirname (no flake.nix found)"
|
||||
fi
|
||||
done
|
||||
echo "-------------------------------------------"
|
||||
echo "Update complete."
|
||||
|
||||
update-lang lang:
|
||||
cd {{lang}} && nix flake update
|
||||
|
||||
format:
|
||||
treefmt .
|
||||
Reference in New Issue
Block a user