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
Add a hermetic test proving the root command's PersistentPreRunE runs
GlobalOpts.PreRun and rejects an invalid --jq expression before any
subcommand's RunE builds a client or reaches the network. A test-only probe
subcommand records whether its RunE ran; the fail-fast path leaves it
untouched, and a control case confirms a valid expression lets it run.
Also note at the assignment that this is the sole PersistentPreRunE in the
tree, so a subcommand defining its own would silently disable --jq
fail-fast validation.
0 commit comments