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 5914c1d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 16 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.
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
local remote_nvim = require("remote-nvim")
local utils = require("remote-nvim.utils")
local M = {}

local function verify_binary(binary_name)
local succ, _ = pcall(utils.find_binary, binary_name)
if not succ then
if vim.fn.executable(binary_name) ~= 1 then
vim.health.error(("`%s` executable not found."):format(binary_name))
else
vim.health.ok(("`%s` executable found."):format(binary_name))
end
end
-- TODO: create a test that checks that a devcontainer can be brought up,
-- this needs to be done after creating the ability to stop a container
-- TODO: create a test that checks that a command can be executed within the
-- running container
-- 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()
vim.health.start("devcontainer_cli")
Expand Down
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

0 comments on commit 5914c1d

Please sign in to comment.