psyinfra / onyo

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

`onyo get` always returns `path` even when not requested #579

Closed aqw closed 3 months ago

aqw commented 4 months ago

I agree with the decision to include path in the default output for onyo get. But I disagree with the decision to /always/ include path in the output, even when not requested. If I as the user don't want it, I cannot be rid of it.

In my opinion, it's kinder to the user to let them request it when they wish.

❱ onyo get --keys type --path accounting
 ─────────────────────────────────────────────────────────────────── 
  type         path                                                  
 ─────────────────────────────────────────────────────────────────── 
  headphones   accounting/Bingo Bob/headphones_apple_airpods.uzl8e1  
  laptop       accounting/Bingo Bob/laptop_apple_macbook.oiw629      
  monitor      accounting/Bingo Bob/monitor_dell_PH123.86JZho        
 ───────────────────────────────────────────────────────────────────