psyinfra / onyo

text-based inventory system on top of git
ISC License
3 stars 5 forks source link

Meta: `onyo_get` support for directories and templates #673

Open aqw opened 1 month ago

aqw commented 1 month ago

This is a tracking, meta issue to allow onyo get to select the type of data source to query (other than just assets).

The objective is to add support for directories and templates. This result would obviate the need for an onyo list (#53), onyo template (#552), and address #672.


Open Questions:

bpoldrack commented 1 month ago

but if one can query template keys, one naturally expects that one can set them...

Seems valid to me. I think this would suggest to add a --type=template|asset to set, unset and potentially even new. I'd give that low priority ATM, though.

nhjjr commented 1 month ago

I'm in favor of this; I missed this recently when adding devices but wasn't sure what the templates were called. It's of course solved with ls .onyo/templates but that's only because I already know where the folder is located.

aqw commented 1 month ago

Yeah, tab completion is meant to alleviate this somewhat when creating assets with onyo new. But I agree that it's an incomplete solution.