Skip to main content

teraslice-cli / helpers/aliases / default

Class: default

Constructors

new default()

new default(aliasesFile): default

Parameters

ParameterType
aliasesFilestring

Returns

default

Source

teraslice-cli/src/helpers/aliases.ts:27

Properties

aliasesFile

aliasesFile: string

Source

teraslice-cli/src/helpers/aliases.ts:25


config

config: Record<string, Record<string, any>>

Source

teraslice-cli/src/helpers/aliases.ts:24

Methods

add()

add(newClusterAlias, newClusterUrl): void

Parameters

ParameterType
newClusterAliasstring
newClusterUrlstring

Returns

void

Source

teraslice-cli/src/helpers/aliases.ts:50


list()

list(output): void

Parameters

ParameterTypeDefault value
outputstring'txt'

Returns

void

Source

teraslice-cli/src/helpers/aliases.ts:61


present()

present(alias): boolean

Parameters

ParameterType
aliasstring

Returns

boolean

Source

teraslice-cli/src/helpers/aliases.ts:72


remove()

remove(clusterAlias): void

Parameters

ParameterType
clusterAliasstring

Returns

void

Source

teraslice-cli/src/helpers/aliases.ts:76


update()

update(clusterAlias, newClusterUrl): void

Parameters

ParameterType
clusterAliasstring
newClusterUrlstring

Returns

void

Source

teraslice-cli/src/helpers/aliases.ts:85


readSync()

static readSync(filename): AnyObject

Parameters

ParameterType
filenamestring

Returns

AnyObject

Source

teraslice-cli/src/helpers/aliases.ts:19


writeSync()

static writeSync(filename, obj): void

Parameters

ParameterType
filenamestring
objAnyObject

Returns

void

Source

teraslice-cli/src/helpers/aliases.ts:15