Skip to content

Commit

Permalink
Document utils.execute in utils.lua (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaurens authored Jun 11, 2024
1 parent a26ca8d commit f3d8e99
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit f3d8e99

Please sign in to comment.