deprecation

package
v2.1.142 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecateCommands

func DeprecateCommands(cmd *cobra.Command)

DeprecateCommands runs recursively over all commands and set the deprecation message on every command defined the deprecated commands map.

func GetRemovalDate

func GetRemovalDate(cmd *cobra.Command) string

GetRemovalDate returns the date when the command is planned to be removed

func GetReplacement

func GetReplacement(cmd *cobra.Command) string

GetReplacement returns the command replacement if any available

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL