command

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallCommand

type InstallCommand struct {
	Meta
}

InstallCommand is a Command that downloads and installs a specific Terraform version.

func (*InstallCommand) Help

func (c *InstallCommand) Help() string

func (*InstallCommand) Run

func (c *InstallCommand) Run(args []string) int

func (*InstallCommand) Synopsis

func (c *InstallCommand) Synopsis() string

type ListCommand

type ListCommand struct {
	Meta
}

ListCommand is a Command that lists all installed versions of Terraform.

func (*ListCommand) Help

func (c *ListCommand) Help() string

func (*ListCommand) Run

func (c *ListCommand) Run(args []string) int

func (*ListCommand) Synopsis

func (c *ListCommand) Synopsis() string

type Meta

type Meta struct {
	TerraformVersion string
	InstallPath      string
	BinPath          string
	TempPath         string
	Extension        string
	Ui               cli.Ui
}

Meta is a struct that contains necessary metadata used by commands.

type RemoveCommand

type RemoveCommand struct {
	Meta
}

RemoveCommand is a Command that removes a specified installed version of Terraform.

func (*RemoveCommand) Help

func (c *RemoveCommand) Help() string

func (*RemoveCommand) Run

func (c *RemoveCommand) Run(args []string) int

func (*RemoveCommand) Synopsis

func (c *RemoveCommand) Synopsis() string

type UseCommand

type UseCommand struct {
	Meta
}

UseCommand is a Command that selects a Terraform version to be used.

func (*UseCommand) Help

func (c *UseCommand) Help() string

func (*UseCommand) Run

func (c *UseCommand) Run(args []string) int

func (*UseCommand) Synopsis

func (c *UseCommand) Synopsis() string

Jump to

Keyboard shortcuts

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