LCVcode / jockey

MIT License
2 stars 3 forks source link

Add principal and leadership checks as filters for units and applications #5

Closed LCVcode closed 1 week ago

LCVcode commented 6 months ago

It makes sense to chose to include or omit principal/subordinate applications/charms and leader/non-leader units. These would be boolean filters, none of which currently exist in Jockey.

Questions to answer:

  1. What is the best way to implement boolean filters? Should they be flags in argparse, or something more similar to existing filters?
  2. How will these filters function when they are applied to objects other than units, applications, or charms? All of the current filters are universal, where these checks will not be. If these filters are used on inappropriate objects, should the filter be ignored? Should it throw an error or a warning?