From f56c5d687e7d3efb40562a426d5b96e7125dc98d Mon Sep 17 00:00:00 2001 From: Philippe Daouadi Date: Tue, 29 Aug 2017 08:57:19 +0200 Subject: [PATCH] Check for gocode, goimports and gogetdoc on go-tools loading --- rc/extra/go-tools.kak | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rc/extra/go-tools.kak b/rc/extra/go-tools.kak index af9d9909..70623fe3 100644 --- a/rc/extra/go-tools.kak +++ b/rc/extra/go-tools.kak @@ -6,9 +6,11 @@ # - jq for json deserializaton %sh{ - if ! jq --version > /dev/null 2>&1; then - echo 'echo -debug %{Dependency unmet: jq, please install it to use go-tools}' - fi + for dep in gocode goimports gogetdoc jq; do + if ! command -v $dep > /dev/null 2>&1; then + echo "echo -debug %{Dependency unmet: $dep, please install it to use go-tools}" + fi + done } # Auto-completion