From 9ceeef156a15ee4b44cf5c08f24371cba5646be6 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 3 Dec 2025 09:47:34 -0700 Subject: [PATCH] Added in forgotten dependency requirement for brew-explorer --- dtools | 14 ++++++++++++++ src/commands/tui/misc/misc_commands.yml | 2 ++ 2 files changed, 16 insertions(+) diff --git a/dtools b/dtools index 8aaba5e..2324cb1 100755 --- a/dtools +++ b/dtools @@ -23486,6 +23486,20 @@ dtools_tui_misc_brew_explorer_parse_requirements() { esac done + missing_deps= + + if ! command -v brew-explorer >/dev/null 2>&1; then + printf "missing dependency: brew-explorer\n" >&2 + printf "%s\n\n" "See 'https://github.com/cosmincatalin/brew-explorer'" >&2 + missing_deps=1 + else + deps['brew-explorer']="$(command -v brew-explorer | head -n1)" + fi + + if [[ -n $missing_deps ]]; then + exit 1 + fi + action="tui misc brew-explorer" while [[ $# -gt 0 ]]; do diff --git a/src/commands/tui/misc/misc_commands.yml b/src/commands/tui/misc/misc_commands.yml index 1edd67e..63bf122 100644 --- a/src/commands/tui/misc/misc_commands.yml +++ b/src/commands/tui/misc/misc_commands.yml @@ -108,3 +108,5 @@ commands: - name: brew-explorer help: A beautiful terminal UI for exploring and managing your Homebrew packages with ease + dependencies: + brew-explorer: See 'https://github.com/cosmincatalin/brew-explorer'