Details

    • Type: Improvement
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0
    • Component/s: None
    • Labels:
      None

      Description

      When typing something like

      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.

      	function versionComplete() {
      		var results = artifactService.listArtifacts( arguments.passedNamedParameters.package ?: '' );
      		
      		if( results.count() ) {
      			return results[ results.keyArray().first() ];
      		}
      			
      		return [];
      	}
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bradwood Brad Wood
                Reporter:
                bradwood Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: