|
The specifics I think are a little squishy here. The goal of the feature ultimately is to allow a user to explore their way to constructing a PQL query. The idea would be something along the lines of a user typing:
And the "auto suggest" would be a list of queryable entites
(nodes|resources|facts|reports|...)
|
Then the user would type n<tab> and get something like:
puppet query nodes { (certname|last_report_timestamp|catalog_timestmap|...) }
|
Although this interaction isn't the exact target, the target is for a user somewhat familiar with puppet terminology to be able to construct a query similar to how they would via a UI based PQL query builder, but from the command line.
Something autocomplete-ish might be a good start, but we'd need to figure out if it would provide enough for this. The other end of the spectrum here would be a REPL that would give us better hooks into the user interaction.
|