recommendedversion

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package recommendedversion is used to check for the currently recommended versions of the Tanzu CLI and inform the user if they are using an outdated version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRecommendedCLIVersion

func CheckRecommendedCLIVersion(cmd *cobra.Command)

CheckRecommendedCLIVersion checks the recommended versions of the Tanzu CLI and prints recommendations to the user if they are using an outdated version. Once recommendations are printed to the user, the next check is only done after 24 hours.

Types

type RecommendedVersion

type RecommendedVersion struct {
	Version string `yaml:"version" json:"version"`
}

RecommendedVersion is the data structure of a single recommended version. We use a struct so that we can add new fields in the future. An array of this struct is the format that must be stored in the central configuration and read back.

Jump to

Keyboard shortcuts

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