commands

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatTable  = Format("table")
	FormatJSON   = Format("json")
	FormatAlfred = Format("alfred")
)

Variables

This section is empty.

Functions

func AlfredFormatOutput added in v0.1.0

func AlfredFormatOutput(items []AlfredFormatItem, noItemMsg string) (string, error)

AlfredFormatOutput generarete alfred script filter json format string from the given items.

Types

type AlfredFormatItem added in v0.1.0

type AlfredFormatItem struct {
	UID          string `json:"uid"`
	Title        string `json:"title"`
	SubTitle     string `json:"subtitle"`
	Arg          string `json:"arg"`
	Match        string `json:"match"`
	AutoComplete string `json:"autocomplete"`
}

AlfredFormatItem represents alfred script filter JSON format item.

type Command added in v0.1.0

type Command struct {
	Client tfc.TfCloud
	UI     cli.Ui
	Format Format
}

type Format added in v0.3.0

type Format string

type ModuleCommand

type ModuleCommand struct {
	Command
}

func (*ModuleCommand) Help

func (c *ModuleCommand) Help() string

func (*ModuleCommand) Run

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

func (*ModuleCommand) Synopsis

func (c *ModuleCommand) Synopsis() string

type ModuleListCommand

type ModuleListCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*ModuleListCommand) Help

func (c *ModuleListCommand) Help() string

func (*ModuleListCommand) Run

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

func (*ModuleListCommand) Synopsis

func (c *ModuleListCommand) Synopsis() string

type ModuleVersionsCommand

type ModuleVersionsCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*ModuleVersionsCommand) Help

func (c *ModuleVersionsCommand) Help() string

func (*ModuleVersionsCommand) Run

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

func (*ModuleVersionsCommand) Synopsis

func (c *ModuleVersionsCommand) Synopsis() string

type RunApplyCommand

type RunApplyCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*RunApplyCommand) Help

func (c *RunApplyCommand) Help() string

func (*RunApplyCommand) Run

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

func (*RunApplyCommand) Synopsis

func (c *RunApplyCommand) Synopsis() string

type RunCommand

type RunCommand struct {
	Command
}

func (*RunCommand) Help

func (c *RunCommand) Help() string

func (*RunCommand) Run

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

func (*RunCommand) Synopsis

func (c *RunCommand) Synopsis() string

type RunListCommand

type RunListCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*RunListCommand) Help

func (c *RunListCommand) Help() string

func (*RunListCommand) Run

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

func (*RunListCommand) Synopsis

func (c *RunListCommand) Synopsis() string

type WorkspaceCommand

type WorkspaceCommand struct {
	Command
}

func (*WorkspaceCommand) Help

func (c *WorkspaceCommand) Help() string

func (*WorkspaceCommand) Run

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

func (*WorkspaceCommand) Synopsis

func (c *WorkspaceCommand) Synopsis() string

type WorkspaceListCommand

type WorkspaceListCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*WorkspaceListCommand) Help

func (c *WorkspaceListCommand) Help() string

func (*WorkspaceListCommand) Run

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

func (*WorkspaceListCommand) Synopsis

func (c *WorkspaceListCommand) Synopsis() string

type WorkspaceUpgradeCommand added in v0.1.0

type WorkspaceUpgradeCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*WorkspaceUpgradeCommand) Help added in v0.1.0

func (c *WorkspaceUpgradeCommand) Help() string

func (*WorkspaceUpgradeCommand) Run added in v0.1.0

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

func (*WorkspaceUpgradeCommand) Synopsis added in v0.1.0

func (c *WorkspaceUpgradeCommand) Synopsis() string

type WorkspaceViewCommand added in v0.2.0

type WorkspaceViewCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*WorkspaceViewCommand) Help added in v0.2.0

func (c *WorkspaceViewCommand) Help() string

func (*WorkspaceViewCommand) Run added in v0.2.0

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

func (*WorkspaceViewCommand) Synopsis added in v0.2.0

func (c *WorkspaceViewCommand) Synopsis() string

Jump to

Keyboard shortcuts

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