mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Removed unused code checking if version is outdated
This commit is contained in:
parent
e8de2d7405
commit
a2f1215126
@ -30,15 +30,6 @@ type VersionOutput struct {
|
||||
ProviderSelections map[string]string `json:"provider_selections"`
|
||||
}
|
||||
|
||||
// VersionCheckInfo is the return value for the VersionCheckFunc callback
|
||||
// and tells the Version command information about the latest version
|
||||
// of Terraform.
|
||||
type VersionCheckInfo struct {
|
||||
Outdated bool
|
||||
Latest string
|
||||
Alerts []string
|
||||
}
|
||||
|
||||
func (c *VersionCommand) Help() string {
|
||||
helpText := `
|
||||
Usage: opentf [global options] version [options]
|
||||
@ -53,8 +44,6 @@ Options:
|
||||
}
|
||||
|
||||
func (c *VersionCommand) Run(args []string) int {
|
||||
var outdated bool
|
||||
var latest string
|
||||
var versionString bytes.Buffer
|
||||
args = c.Meta.process(args)
|
||||
var jsonOutput bool
|
||||
@ -136,13 +125,6 @@ func (c *VersionCommand) Run(args []string) int {
|
||||
c.Ui.Output(str)
|
||||
}
|
||||
}
|
||||
if outdated {
|
||||
c.Ui.Output(fmt.Sprintf(
|
||||
"\nYour version of OpenTF is out of date! The latest version\n"+
|
||||
"is %s. You can update by downloading from https://www.placeholderplaceholderplaceholder.io/downloads.html",
|
||||
latest))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user