Skip to content

Commit 98b82d5

Browse files
committed
cli-plugins/manager: deprecate annotation metadata aliases
These aliases were added in 292713c (part of v28.0), but did not deprecate them. They are no longer used in the CLI itself, but may be used by cli-plugin implementations. This deprecates the aliases in `cli-plugins/manager` in favor of their equivalent in `cli-plugins/manager/metadata`: - `CommandAnnotationPlugin` - `CommandAnnotationPluginVendor` - `CommandAnnotationPluginVersion` - `CommandAnnotationPluginInvalid` - `CommandAnnotationPluginCommandPath` Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 72f76f2) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 6adde56 commit 98b82d5

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)