Teraslice CLI: `Helpers Utils`
Table of contents
Variables
Functions
Variables
wasmPlugin
• Const
wasmPlugin: Object
Type declaration
Name | Type |
---|---|
name | string |
setup | (build : any ) => void |
Defined in
teraslice-cli/src/helpers/utils.ts:82
Functions
camelCase
▸ camelCase(str
): string
Parameters
Name | Type |
---|---|
str | string |
Returns
string
Defined in
teraslice-cli/src/helpers/utils.ts:28
getPackage
▸ getPackage(filePath?
): any
Parameters
Name | Type |
---|---|
filePath? | string |
Returns
any
Defined in
teraslice-cli/src/helpers/utils.ts:32
getTerasliceClient
▸ getTerasliceClient(cliConfig
): TerasliceClient
Parameters
Name | Type |
---|---|
cliConfig | Record <string , any > |
Returns
TerasliceClient
Defined in
teraslice-cli/src/helpers/utils.ts:42
getTerasliceClusterType
▸ getTerasliceClusterType(terasliceClient
): Promise
<string
>
Parameters
Name | Type |
---|---|
terasliceClient | TerasliceClient |
Returns
Promise
<string
>
Defined in
teraslice-cli/src/helpers/utils.ts:46
handleWrapper
▸ handleWrapper(fn
): (argv
: unknown
) => void
Parameters
Name | Type |
---|---|
fn | (argv : any ) => any |
Returns
fn
▸ (argv
): void
Parameters
Name | Type |
---|---|
argv | unknown |
Returns
void
Defined in
teraslice-cli/src/helpers/utils.ts:67
kebabCase
▸ kebabCase(str
): string
Parameters
Name | Type |
---|---|
str | string |
Returns
string
Defined in
teraslice-cli/src/helpers/utils.ts:20
snakeCase
▸ snakeCase(str
): string
Parameters
Name | Type |
---|---|
str | string |
Returns
string