feat(update): add colored messages for what is being updated

This commit is contained in:
matt1432 2025-04-11 12:10:32 -04:00
parent ac072ca1c3
commit e9fffbc3b6
7 changed files with 21 additions and 2 deletions
apps/update-sources/src

View file

@ -1,10 +1,13 @@
import { spawnSync } from 'node:child_process';
import { styleText } from 'node:util';
/* Constants */
const FLAKE = process.env.FLAKE;
export const updateFlakeInputs = () => {
console.log(styleText(['magenta'], '\nUpdating flake inputs:\n'));
const output = spawnSync(
`git restore flake.lock &> /dev/null; nix flake update --flake ${FLAKE}` +
' |& grep -v "warning: updating lock file" |& grep -v "unpacking"',