Allow commands to supply completor hints per param

Description

Let's say a command has a param called "size" which can be equal to "small", "medium", or "large". Allow metadata in the command that the Completor will use to prompt those values.

Then, typing "command size=la" and hitting tab, would auto-complete "large".

Activity

Show:
Brad Wood
June 27, 2014, 6:26 PM
Edited

The immediate use case for this was with forgebox and its types. What would be even more interesting is if we allows commands to register runtime hints. Imagine if typing "forgebox install col<tab>" could do real-time hints based on actual forgebox data live or cached.

Luis Majano
July 27, 2014, 4:24 AM

I thought this was implemented already right Brad via the options and optionsUDF metadata?

Brad Wood
July 27, 2014, 7:10 AM

Yes, it is done. This ticket must be a duplicate or just didn't get resolved.

Fixed

Assignee

Brad Wood

Reporter

Brad Wood

Labels

None

Affects versions

None

Fix versions

Time tracking

0m

Time remaining

2h

Priority

Major

Components