Skip to content

Commit 6dcf9ac

Browse files
Merge pull request #6297 from thaJeztah/plugin_manager_more_deprecations
cli-plugins/manager: deprecate annotation metadata aliases
2 parents e0af501 + 72f76f2 commit 6dcf9ac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cli-plugins/manager/annotations.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,35 @@ const (
66
// CommandAnnotationPlugin is added to every stub command added by
77
// AddPluginCommandStubs with the value "true" and so can be
88
// used to distinguish plugin stubs from regular commands.
9+
//
10+
// Deprecated: use [metadata.CommandAnnotationPlugin]. This alias will be removed in the next release.
911
CommandAnnotationPlugin = metadata.CommandAnnotationPlugin
1012

1113
// CommandAnnotationPluginVendor is added to every stub command
1214
// added by AddPluginCommandStubs and contains the vendor of
1315
// that plugin.
16+
//
17+
// Deprecated: use [metadata.CommandAnnotationPluginVendor]. This alias will be removed in the next release.
1418
CommandAnnotationPluginVendor = metadata.CommandAnnotationPluginVendor
1519

1620
// CommandAnnotationPluginVersion is added to every stub command
1721
// added by AddPluginCommandStubs and contains the version of
1822
// that plugin.
23+
//
24+
// Deprecated: use [metadata.CommandAnnotationPluginVersion]. This alias will be removed in the next release.
1925
CommandAnnotationPluginVersion = metadata.CommandAnnotationPluginVersion
2026

2127
// CommandAnnotationPluginInvalid is added to any stub command
2228
// added by AddPluginCommandStubs for an invalid command (that
2329
// is, one which failed it's candidate test) and contains the
2430
// reason for the failure.
31+
//
32+
// Deprecated: use [metadata.CommandAnnotationPluginInvalid]. This alias will be removed in the next release.
2533
CommandAnnotationPluginInvalid = metadata.CommandAnnotationPluginInvalid
2634

2735
// CommandAnnotationPluginCommandPath is added to overwrite the
2836
// command path for a plugin invocation.
37+
//
38+
// Deprecated: use [metadata.CommandAnnotationPluginCommandPath]. This alias will be removed in the next release.
2939
CommandAnnotationPluginCommandPath = metadata.CommandAnnotationPluginCommandPath
3040
)

0 commit comments

Comments
 (0)