From f6bc37b8613fe5888dd7870043dc50a9d772b316 Mon Sep 17 00:00:00 2001 From: Terje Tjervaag Date: Sun, 15 Dec 2024 11:07:20 +0100 Subject: [PATCH] feat: Add health check --- lua/simctl/health.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lua/simctl/health.lua diff --git a/lua/simctl/health.lua b/lua/simctl/health.lua new file mode 100644 index 0000000..1eecb8a --- /dev/null +++ b/lua/simctl/health.lua @@ -0,0 +1,13 @@ +local M = {} + +M.check = function() + vim.health.start("simctl") + local xcrun = vim.fn.executable("xcrun") ~= 0 + if xcrun then + vim.health.ok("xcrun command found in $PATH") + else + vim.health.error("xcrun command not found in $PATH. Is Xcode installed?") + end +end + +return M