Skip to content

Commit

Permalink
Breaking: Renamed devcontainer_cli to devcontainer_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
erichlf committed Apr 27, 2024
1 parent 5988560 commit 91c73c4
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 37 deletions.
1 change: 1 addition & 0 deletions doc/devcontainer_cli.txt → doc/devcontainer-cli.nvim.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*devcontainer-cli.nvim.txt* For Neovim >= 0.9
================================================================================
*devcontainer-cli.nvim*

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local config = require("devcontainer_cli.config")
local devcontainer_utils = require("devcontainer_cli.devcontainer_utils")
local config = require("devcontainer-cli.config")
local devcontainer_utils = require("devcontainer-cli.devcontainer_utils")

local M = {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local config = require("devcontainer_cli.config")
local windows_utils = require("devcontainer_cli.windows_utils")
local folder_utils = require("devcontainer_cli.folder_utils")
local config = require("devcontainer-cli.config")
local windows_utils = require("devcontainer-cli.windows_utils")
local folder_utils = require("devcontainer-cli.folder_utils")

local M = {}

Expand Down
File renamed without changes.
30 changes: 30 additions & 0 deletions lua/devcontainer-cli/health.lua
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local M = {}

local devcontainer_cli = require("devcontainer_cli.devcontainer_cli")
local config = require("devcontainer_cli.config")
local devcontainer_cli = require("devcontainer-cli.devcontainer_cli")
local config = require("devcontainer-cli.config")
local configured = false

-- setup the devcontainer-cli plugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local config = require("devcontainer_cli.config")
local config = require("devcontainer-cli.config")

local M = {}

Expand Down
29 changes: 0 additions & 29 deletions lua/devcontainer_cli/health.lua

This file was deleted.

0 comments on commit 91c73c4

Please sign in to comment.