Skip to content

Commit

Permalink
add annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Nov 17, 2024
1 parent 39c393f commit 900e13b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/kubectl/views/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,16 @@ function M.UserCmd(args)
end)
end

--- Set a new URL and open the view
---@param opts table Options. Possible fields:
--- - <src> - Source view name where we are redirecting from
--- - <dest> - Destination view name where we are redirecting to
--- - <new_query_params> - New query parameters to set to the
--- destination view URL
--- - <name> - Resource name from src
--- - <ns> - Namespace name from src
function M.set_url_and_open_view(opts)
opts = opts or {}
local src = opts.src
local dest = opts.dest
local new_query_params = opts.new_query_params
Expand Down

0 comments on commit 900e13b

Please sign in to comment.