Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve usage of logger and command exception #474

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

stevenkuhn
Copy link
Contributor

This improves the use of Logger, LoggerFactory, and Console by removing the nullable references which eliminates the need for the null conditional operators. This also creates a new CommandException that is able to take in CommandExitCode (formerly CommandErrors) instead of having to cast to int everywhere.

The one note is if Console is used before the ExecuteCommand() method, an exception will be thrown with the message, "The Console property has not yet been initialized. It can only be used within in the ExecuteCommand() method."

@ctacke ctacke merged commit 75b9330 into develop Feb 14, 2024
1 check passed
@stevenkuhn stevenkuhn deleted the feature/improve-command-exception branch February 14, 2024 15:50
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.

2 participants