Files
iris-context/commands/ops/tfenv.go
T
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

27 lines
907 B
Go

package ops
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "tfenv",
Description: "Version",
Subcommands: []spec.Subcommand{
{Name: "install", Description: "Install a specific version of Terraform"},
{Name: "version", Description: "Possible Terraform Version"},
{Name: "use", Description: "Switch to a version to use"},
{Name: "uninstall", Description: "Uninstall a specific version of Terraform"},
{Name: "list", Description: "List all installed versions"},
{Name: "list-remote", Description: "List all installable versions"},
{Name: "version-name", Description: "Print current version"},
{Name: "init", Description: "Update environment to use tfenv correctly"},
},
Options: []spec.Option{
{Name: "-v", Description: "View your current tfenv version"},
{Name: "--help", Description: "View commands"},
},
})
}