Skip to main content

teraslice-cli / helpers/utils

helpers/utils

Variables

wasmPlugin

const wasmPlugin: object

Type declaration

name

name: string = 'wasm'

setup()
Parameters
ParameterType
buildany
Returns

void

Source

teraslice-cli/src/helpers/utils.ts:81

Functions

camelCase()

camelCase(str): string

Parameters

ParameterType
strstring

Returns

string

Source

teraslice-cli/src/helpers/utils.ts:28


getPackage()

getPackage(filePath?): any

Parameters

ParameterType
filePath?string

Returns

any

Source

teraslice-cli/src/helpers/utils.ts:32


getTerasliceClient()

getTerasliceClient(cliConfig): TerasliceClient

Parameters

ParameterType
cliConfigRecord<string, any>

Returns

TerasliceClient

Source

teraslice-cli/src/helpers/utils.ts:42


getTerasliceClusterType()

getTerasliceClusterType(terasliceClient): Promise<string>

Parameters

ParameterType
terasliceClientTerasliceClient

Returns

Promise<string>

Source

teraslice-cli/src/helpers/utils.ts:46


handleWrapper()

handleWrapper(fn): (argv) => void

Parameters

ParameterType
fn(argv) => any

Returns

Function

Parameters
ParameterType
argvunknown
Returns

void

Source

teraslice-cli/src/helpers/utils.ts:66


kebabCase()

kebabCase(str): string

Parameters

ParameterType
strstring

Returns

string

Source

teraslice-cli/src/helpers/utils.ts:20


snakeCase()

snakeCase(str): string

Parameters

ParameterType
strstring

Returns

string

Source

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