When typing something like
and hitting tab, the autocomplete for the version param depends on the value provided for the package param. Pass the params that were parsed thus var as *passedNamedParameters *so the completor UDF can adjust what it returns accordingly.
Always pass named params (struct) for ease of use, even if the user was typing positional params.
Here's the real example from the artifacts remove command completion on the version param.