Skip to content

Commit

Permalink
Move packages to a beta state
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed May 14, 2023
1 parent b3d99dd commit 6359747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmd/mockery.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ func (r *RootApp) Run() error {
if err != nil {
return fmt.Errorf("failed to get package from config: %w", err)
}
warnAlpha(
warnBeta(
ctx,
"use of the 'packages' config variable is currently in an alpha state. Use at your own risk.",
"use of the 'packages' config variable is currently in a beta state. Use at your own risk.",
map[string]any{
"discussion": "https://github.com/vektra/mockery/discussions/549",
})
Expand Down Expand Up @@ -427,6 +427,6 @@ func infoDiscussion(ctx context.Context, message string, fields map[string]any)
info(ctx, "DISCUSSION", message, fields)
}

func warnAlpha(ctx context.Context, message string, fields map[string]any) {
warn(ctx, "ALPHA FEATURE", message, fields)
func warnBeta(ctx context.Context, message string, fields map[string]any) {
warn(ctx, "BETA FEATURE", message, fields)
}
4 changes: 2 additions & 2 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func (_m *Handler) HandleMessage(m pubsub.Message) error {
------------------------
:octicons-tag-24: v2.21.0 · :material-test-tube: Alpha Feature

!!! danger
This feature is considered alpha. It is likely that bugs exist, and subfeatures may be added/subtracted/modified at any time. Use at your own risk. This warning will be updated as this feature matures.
!!! warning
This feature is considered beta. The feature set has been solidifed, but we are asking users to beta-test for any bugs. Use at your own risk. This warning will be updated as this feature matures.

!!! info
See the [Migration Docs](/mockery/migrating_to_packages/) on how to migrate to this new feature.
Expand Down

0 comments on commit 6359747

Please sign in to comment.