Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "index"

Index

Type aliases

Command

Functions

Apply

Config

  • Construct a config object for calls to exec

    Parameters

    • Default value props: Partial<IConfig> = {}

    Returns IConfig

Destroy

Fmt

  • Fmt(dir?: undefined | string, opts?: Partial<IFmtOpts>): IFmt

ForceUnlock

Get

  • Get(dir?: undefined | string, opts?: Partial<IGetOpts>): IGet

Graph

Import

Init

Output

Plan

  • Plan(dirOrPlan?: undefined | string, opts?: Partial<IPlanOpts>): IPlan

Providers

  • Providers(configPath?: undefined | string): IProviders

Push

Refresh

Show

StateList

StateMv

StatePull

StatePush

StateRm

StateShow

Taint

Untaint

Validate

WorkspaceDelete

WorkspaceList

WorkspaceNew

WorkspaceSelect

WorkspaceShow

dasherize

  • dasherize(str: string): string
  • Parameters

    • str: string

    Returns string

exec

  • Executes a command with the given configuration.

    Parameters

    Returns function

    a Promise to the stdout string result

      • Parameters

        Returns Promise<string>

  • Parameters

    Returns Promise<string>

flag

  • flag(key: string): (Anonymous function)
  • Parameters

    • key: string

    Returns (Anonymous function)

flagKey

  • flagKey(str: string): string
  • Parameters

    • str: string

    Returns string

mapExec

  • Executes multiple commands and return a promise to an array of their results

    Parameters

    Returns function

      • (cfg: IConfig): Promise<string[]>
      • Parameters

        Returns Promise<string[]>

  • Parameters

    Returns Promise<string[]>

maybe1

  • maybe1(a?: undefined | string): [string] | undefined
  • Parameters

    • Optional a: undefined | string

    Returns [string] | undefined

maybe1or2

  • maybe1or2(a: string, b?: undefined | string): [string] | [string, string]
  • Parameters

    • a: string
    • Optional b: undefined | string

    Returns [string] | [string, string]

optsToArray

  • optsToArray(opts: any): string[]
  • Parameters

    • opts: any

    Returns string[]

toArray

  • toArray(__namedParameters: object): string[]
  • Parameters

    • __namedParameters: object
      • args: undefined | string[] | Object | Object
      • command: "apply" | "destroy" | "fmt" | "force-unlock" | "get" | "graph" | "plan" | "import" | "init" | "output" | "providers" | "push" | "refresh" | "show" | "state list" | "state mv" | "state pull" | "state push" | "state rm" | "state show" | "taint" | "validate" | "untaint" | "workspace list" | "workspace select" | "workspace new" | "workspace delete" | "workspace show"
      • opts: undefined | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object

    Returns string[]

Generated using TypeDoc