cmd

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCLI

func NewCLI(version string) *cli.CLI

Types

type Meta

type Meta struct {
	UI  cli.Ui
	API *tfe.Client
}

Meta stores values and methods needed by all commands

func (*Meta) LoadConfig

func (m *Meta) LoadConfig(host string) error

type MigrateCommand

type MigrateCommand struct {
	*Meta

	Hostname     string
	Organization string

	WorkspaceName     string
	WorkspacePrefix   string
	WorkspaceVariable string
	TfvarsFilename    string
	ModulesDir        string
}

func (*MigrateCommand) Help

func (c *MigrateCommand) Help() string

func (*MigrateCommand) Run

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

func (*MigrateCommand) Synopsis

func (c *MigrateCommand) Synopsis() string

type OpenCommand added in v0.1.3

type OpenCommand struct {
	*Meta

	Workspace string
}

func (*OpenCommand) Help added in v0.1.3

func (c *OpenCommand) Help() string

func (*OpenCommand) Run added in v0.1.3

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

func (*OpenCommand) Synopsis added in v0.1.3

func (c *OpenCommand) Synopsis() string

Jump to

Keyboard shortcuts

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