Skip to content

Commit 5876b29

Browse files
committed
cli-plugins/manager: deprecate metadata aliases
These aliases were added in 4321293 (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`: - `NamePrefix` - `MetadataSubcommandName` - `HookSubcommandName` - `Metadata` - `ReexecEnvvar` Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 50963ac commit 5876b29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cli-plugins/manager/metadata.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,26 @@ import (
66

77
const (
88
// NamePrefix is the prefix required on all plugin binary names
9+
//
10+
// Deprecated: use [metadata.NamePrefix]. This alias will be removed in a future release.
911
NamePrefix = metadata.NamePrefix
1012

1113
// MetadataSubcommandName is the name of the plugin subcommand
1214
// which must be supported by every plugin and returns the
1315
// plugin metadata.
16+
//
17+
// Deprecated: use [metadata.MetadataSubcommandName]. This alias will be removed in a future release.
1418
MetadataSubcommandName = metadata.MetadataSubcommandName
1519

1620
// HookSubcommandName is the name of the plugin subcommand
1721
// which must be implemented by plugins declaring support
1822
// for hooks in their metadata.
23+
//
24+
// Deprecated: use [metadata.HookSubcommandName]. This alias will be removed in a future release.
1925
HookSubcommandName = metadata.HookSubcommandName
2026
)
2127

2228
// Metadata provided by the plugin.
29+
//
30+
// Deprecated: use [metadata.Metadata]. This alias will be removed in a future release.
2331
type Metadata = metadata.Metadata

0 commit comments

Comments
 (0)