Use Omarchy command helpers consistently

This commit is contained in:
David Heinemeier Hansson
2026-07-18 10:08:43 -07:00
parent bd34704f7b
commit 8862fb22bd
23 changed files with 54 additions and 46 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ fail() {
}
require_command() {
command -v "$1" >/dev/null 2>&1 || fail "$1 is required"
omarchy-cmd-present "$1" || fail "$1 is required"
}
interactive() {
@@ -283,7 +283,7 @@ update_one() {
if (( ! ASSUME_YES )); then
echo "Changes for $id:"
if command -v delta >/dev/null 2>&1; then
if omarchy-cmd-present delta; then
git -C "$dir" diff HEAD FETCH_HEAD | delta --paging=never
else
git -C "$dir" diff HEAD FETCH_HEAD