-
Notifications
You must be signed in to change notification settings - Fork 13
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
Improved Coffee Verification and CoffeeNurse Functionality #207
Conversation
✅ Deploy Preview for coffee-docs canceled.
|
This commit introduces the following changes: - It now checks the status of the coffee configuration before executing each command. - If the coffee status is found to be not sane, the command will return an error. - To bypass this verification step, you can use the --skip-verify flag. - By default, the --skip-verify flag is set to true for the httpd, coffee_plugin, and testing crates. Signed-off-by: Tarek <[email protected]>
This commit introduces the following changes: - Implementation of the is_sane method for the CoffeeNurse type. - Implementation of the organize method for the CoffeeNurse type, which organizes the actions taken by coffee nurse to ensure each action is included only once. - Addition of a new method called coffee_verify to check the status of the coffee configuration without taking any action. - Introduction of a --verify flag for the coffee nurse command, which calls the coffee_verify method. - Inclusion of a test for the coffee_verify method. Signed-off-by: Tarek <[email protected]>
Signed-off-by: Tarek <[email protected]>
Unrelated failure but we should debug it @tareknaser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is the error we encountered before #201 Here is the error: |
Thanks good catch @tareknaser I open a issue for it |
Description
This pull request introduces enhancements to
coffee
command-line tool:1. Verification Enhancements:
coffee
now checks the status of its configuration before executing each command.--skip-verify
flag.2. CoffeeNurse Improvements:
is_sane
forCoffeeNurse
type to assess the sanity of thecoffee
configuration.organize
method forCoffeeNurse
, ensuring each action is included only once.coffee_verify
, which allows users to checkcoffee
configuration's status without taking any action.3. New
--verify
Flag:coffee nurse
command now supports a--verify
flag, which invokes thecoffee_verify
method.4. Testing and Documentation:
coffee_verify
method.Fixes #128