2020-03-12 21:47:31 +01:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ZeroThirteenUpgradeCommand upgrades configuration files for a module
|
|
|
|
// to include explicit provider source settings
|
|
|
|
type ZeroThirteenUpgradeCommand struct {
|
|
|
|
Meta
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *ZeroThirteenUpgradeCommand) Run(args []string) int {
|
2020-12-01 16:48:55 +01:00
|
|
|
c.Ui.Output(`
|
2020-09-29 00:57:45 +02:00
|
|
|
The 0.13upgrade command has been removed. You must run this command with
|
|
|
|
Terraform v0.13 to upgrade your provider requirements before upgrading to the
|
2020-12-01 16:48:55 +01:00
|
|
|
current version.`)
|
2020-03-12 21:47:31 +01:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *ZeroThirteenUpgradeCommand) Help() string {
|
|
|
|
helpText := `
|
2020-09-29 00:57:45 +02:00
|
|
|
Usage: terraform 0.13upgrade
|
2020-06-04 04:11:46 +02:00
|
|
|
|
2020-09-29 00:57:45 +02:00
|
|
|
The 0.13upgrade command has been removed. You must run this command with
|
|
|
|
Terraform v0.13 to upgrade your provider requirements before upgrading to
|
|
|
|
the current version.
|
2020-03-12 21:47:31 +01:00
|
|
|
`
|
|
|
|
return strings.TrimSpace(helpText)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *ZeroThirteenUpgradeCommand) Synopsis() string {
|
|
|
|
return "Rewrites pre-0.13 module source code for v0.13"
|
|
|
|
}
|