Replace mitchellh/cli With Internal CLI Package - #405
Open
o-t-reilly wants to merge 5 commits into
Open
Conversation
Match mitchellh/cli behavior by displaying help when an unknown command is encountered, instead of silently returning exit code 127. - Add help output in CLI.Run() when command lookup fails - Add test to verify HelpFunc is called for unknown commands - Improves user experience with immediate feedback on typos
o-t-reilly
force-pushed
the
o-t-reilly/CORI2-3216
branch
from
August 6, 2026 18:06
aa485a3 to
2dfc20e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[CORI2-3216]
mitchellh/cli is archived and pulls in a transitive dependency with a known vulnerability: GO-2026-5932 via posener/complete → golang.org/x/crypto/openpgp. No fixed version of mitchellh/cli exists.
This PR removes the dependency entirely and replaces its functionality with an internal package at internal/cli, preserving all existing logic and signatures.
PCI review checklist
If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
If applicable, I've worked with GRC to document the impact of any changes to security controls.
Examples of changes to controls include access controls, encryption, logging, etc.
If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.