cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 14 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
	// contains filtered or unexported fields
}

Meta stores values and methods needed by all commands

func (*Meta) LoadConfig

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

type MetaConfig

type MetaConfig struct {
	Hostname     string
	Organization string
}

MetaConfig stores configuration that can be set in all commands

type MigrateCommand

type MigrateCommand struct {
	*Meta

	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

Jump to

Keyboard shortcuts

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