command

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

Package command provides functions to manipulate tanzu cli commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecateCommand

func DeprecateCommand(cmd *cobra.Command, removalVersion string)

DeprecateCommand marks the command as deprecated and adds deprecation message.

func DeprecateCommandWithAlternative

func DeprecateCommandWithAlternative(cmd *cobra.Command, removalVersion, alternative string)

DeprecateCommandWithAlternative marks the commands as deprecated and adds deprecation message with an alternative.

func DeprecateFlag

func DeprecateFlag(cmd *cobra.Command, flag, removalVersion string)

DeprecateFlag marks the flag as deprecated and hidden with a deprecation message.

func DeprecateFlagWithAlternative

func DeprecateFlagWithAlternative(cmd *cobra.Command, flag, removalVersion, alternative string)

DeprecateFlagWithAlternative marks the flag as deprecated and hidden with deprecation message recommending an alternative flag to use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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