You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support the 'combinable' & 'only' flag relationships (#1487) (#1488)
This new flag relationship aims to ease defining that a specific flag is ONLY compatible
with just a few other ones.
Currently users would have to enumerate all other incompatible flags in the exclusive relationship,
which leads to some repetition, doesn't capture exactly the original intention, and could lead to
oversights if more flags are added to that command later.
I realized this use case while working on a balena-cli PR, where we had to define that
--config is allowed to be combined with the --yes flag and is incompatible with all other flags.
The workaround that we ended up having to use, was to use an IIFE and define the compatible flags
in a separate array and reference that in the exclusive property.
balena-io/balena-cli@692e70d
Co-authored-by: Thodoris Greasidis <[email protected]>
0 commit comments