-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking: Renamed devcontainer_cli to devcontainer_cli
- Loading branch information
Showing
9 changed files
with
39 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
lua/devcontainer_cli/devcontainer_cli.lua → lua/devcontainer-cli/devcontainer_cli.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
lua/devcontainer_cli/devcontainer_utils.lua → lua/devcontainer-cli/devcontainer_utils.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
local M = {} | ||
|
||
local start = vim.health.start or vim.health.report_start | ||
local ok = vim.health.ok or vim.health.report_ok | ||
local warn = vim.health.warn or vim.health.report_warn | ||
local error = vim.health.error or vim.health.report_error | ||
|
||
local function verify_binary(binary_name) | ||
if vim.fn.executable(binary_name) ~= 1 then | ||
error(("`%s` executable not found."):format(binary_name), ("Install %s"):format(binary_name)) | ||
else | ||
ok(("`%s` executable found."):format(binary_name)) | ||
end | ||
end | ||
-- TODO: create a check for DevcontainerUp, this needs to be done after | ||
-- creating the ability to stop a container | ||
-- TODO: create a check for DevcontainerExec | ||
|
||
function M.check() | ||
-- start("devcontainer-cli") | ||
local required_binaries = { | ||
"docker", | ||
"devcontainer-cli", | ||
} | ||
for _, bin_name in ipairs(required_binaries) do | ||
verify_binary(bin_name) | ||
end | ||
end | ||
|
||
return M |
4 changes: 2 additions & 2 deletions
4
lua/devcontainer_cli/init.lua → lua/devcontainer-cli/init.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lua/devcontainer_cli/windows_utils.lua → lua/devcontainer-cli/windows_utils.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.