We're updating the issue view to help you get more done. 

Provide all other args to command completor UDFs

Description

When typing something like

1 artifacts remove package=coldbox version=

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.

1 2 3 4 5 6 7 8 9 function versionComplete() { var results = artifactService.listArtifacts( arguments.passedNamedParameters.package ?: '' ); if( results.count() ) { return results[ results.keyArray().first() ]; } return []; }

Status

Assignee

Brad Wood

Reporter

Brad Wood

Labels

None

Fix versions

Priority

Major