Skip to main content

teraslice-cli / helpers/aliases / default

Class: default

Defined in: teraslice-cli/src/helpers/aliases.ts:14

Constructors

new default()

new default(aliasesFile): default

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

Parameters

ParameterType
aliasesFilestring

Returns

default

Properties

PropertyTypeDefined in
aliasesFilestringteraslice-cli/src/helpers/aliases.ts:25
configRecord<string, Record<string, any>>teraslice-cli/src/helpers/aliases.ts:24

Methods

add()

add(newClusterAlias, newClusterUrl): void

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

Parameters

ParameterType
newClusterAliasstring
newClusterUrlstring

Returns

void


list()

list(output): void

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

Parameters

ParameterTypeDefault value
outputstring'txt'

Returns

void


present()

present(alias): boolean

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

Parameters

ParameterType
aliasstring

Returns

boolean


remove()

remove(clusterAlias): void

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

Parameters

ParameterType
clusterAliasstring

Returns

void


update()

update(clusterAlias, newClusterUrl): void

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

Parameters

ParameterType
clusterAliasstring
newClusterUrlstring

Returns

void


readSync()

static readSync(filename): AnyObject

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

Parameters

ParameterType
filenamestring

Returns

AnyObject


writeSync()

static writeSync(filename, obj): void

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

Parameters

ParameterType
filenamestring
objAnyObject

Returns

void