8000 Added lifecycle hooks for enhanced workflow customization by mik047 · Pull Request #1742 · specmatic/specmatic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added lifecycle hooks for enhanced workflow customization #1742

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

Merged
merged 26 commits into from
Apr 9, 2025

Conversation

mik047
Copy link
Contributor
@mik047 mik047 commented Apr 8, 2025

Introduced the lifecycle hooks feature to the project, providing enhanced options for customizing and automating specific stages in the workflow. The primary focus of this feature is to allow developers to implement pre-defined hooks at critical stages of the application's lifecycle, facilitating greater flexibility and control.

Key Changes:

  • Added a new LifecycleHooks interface to define hooks for key lifecycle events.
  • Added hooks for example validate command

@mik047 mik047 requested a review from joelrosario April 8, 2025 13:53
@mik047 mik047 changed the title lifecycle_hooks Adding capability to register hooks and allow doing custom operations Apr 8, 2025
@mik047 mik047 changed the title Adding capability to register hooks and allow doing custom operations Adding capability to register hooks allowing additional operations Apr 8, 2025
@mik047 mik047 changed the title Adding capability to register hooks allowing additional operations Adding capability to register hooks allowing additional custom operations Apr 8, 2025
@mik047 mik047 changed the title Adding capability to register hooks allowing additional custom operations Add Lifecycle Hooks Functionality for Enhanced Workflow Customization Apr 8, 2025
@joelrosario joelrosario changed the title Add Lifecycle Hooks Functionality for Enhanced Workflow Customization Add Lifecycle Hooks for Enhanced Workflow Customization Apr 9, 2025
mik047 added 2 commits April 9, 2025 17:41
…ycle hook invocation

Also, to ensure the examples being validated and the one considered for duplication is the same list
@mik047 mik047 changed the title Add Lifecycle Hooks for Enhanced Workflow Customization Added life cycle hooks for enhanced workflow customization Apr 9, 2025
…te as those classes are no more required effectively for overall change
package io.specmatic.core.lifecycle

object LifecycleHooks {
var afterLoadingStaticExamples: AfterLoadingStaticExamplesHooks = AfterLoadingStaticExamplesHooks()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a val, instead of var.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@joelrosario joelrosario changed the title Added life cycle hooks for enhanced workflow customization Added lifecycle hooks for enhanced workflow customization Apr 9, 2025
@joelrosario joelrosario merged commit 819613d into main Apr 9, 2025
2 checks passed
@joelrosario joelrosario deleted the lifecycle_hooks branch April 9, 2025 13:29
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
0