Skip to content

Conversation

@philpennock
Copy link
Member

@philpennock philpennock commented Mar 20, 2025

A common use-case for checking credentials is "check my current credentials". Rather than force users to manually grab the path from their context, provide a flag --context-credential to just use the credential from that.

Changes in existing behavior: a different error flow for missing --credential when this new flag is not given.

I couldn't see a way in the fisk library to have a mandatory mutually-exclusive flag group, so coded up the checks manually when dropping Required() from --credential.

@philpennock philpennock requested a review from ripienaar March 20, 2025 18:13
A common use-case for checking credentials is "check my current credentials".
Rather than force users to manually grab the path from their context, provide a
flag `--context-credential` to just use the credential from that.

Changes in existing behavior: a different error flow for missing `--credential`
when this new flag is not given.

I couldn't see a way in the fisk library to have a mandatory
mutually-exclusive flag group, so coded up the checks manually when dropping
`Required()` from `--credential`.
@philpennock philpennock force-pushed the pdp/check-credential-context branch from 432e16f to 19b7b1a Compare March 20, 2025 18:14
@philpennock
Copy link
Member Author

(force-push was an amend to fix a typo in the commit message, no change to tree)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant