Skip to content

Commit

Permalink
add typing to gh.run
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 committed Feb 22, 2025
1 parent 873bcb9 commit 87db2fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lua/octo/gh/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ function M.create_callback(opts)
end
end

---@class RunOpts
---@field args table
---@field mode string
---@field cb fun(stdout: string, stderr: string)
---@field stream_cb fun(stdout: string, stderr: string)
---@field headers table
---@field hostname string

---Run a gh command
---@param opts RunOpts
---@return string[]|nil
function M.run(opts)
if not Job then
return
Expand Down

0 comments on commit 87db2fc

Please sign in to comment.