-
Notifications
You must be signed in to change notification settings - Fork 880
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: Rework completion error handling
Moves the error reporting from the completion function to the standard error handling mechanism. CompletionCommand had to be made fully public, not that this matters for a binary target. That said, this could have been prevented by transforming the CompletionCommand into its String form at the error site rather than at the reporting site. It was chosen to go with this method as stringly-typed interfaces are generally bad.
- Loading branch information
1 parent
02d63fc
commit 8a189fa
Showing
2 changed files
with
37 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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