Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document utils.execute in utils.lua #479

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lua/pl/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ local _function_factories = {}


local utils = { _VERSION = "1.14.0" }

for k, v in pairs(compat) do utils[k] = v end

--- Some standard patterns
Expand Down Expand Up @@ -585,6 +586,11 @@ end
--- OS functions
-- @section OS-functions

--- Execute a shell command.
-- This function is a copy of `compat.execute`.
-- @class function
-- @name utils.execute

--- execute a shell command and return the output.
-- This function redirects the output to tempfiles and returns the content of those files.
-- @param cmd a shell command
Expand Down
Loading