Home Reference Source Repository

Function

Static Public Summary
public

Output help

public

Exit code 1 when raised error

public

filterObjects(configs: Object[], objects: Object[]): Object[]

Return filtered objects

public

getTagValue(tags: Object[], key: string): string

Return value of tag

public

Output error message when unknown sub commands

Static Public

public defaultOutputHelp(program: Object) source

import {defaultOutputHelp} from 'node-jungle/src/commands/utils.js'

Output help

Params:

NameTypeAttributeDescription
program Object

commander object

public errorAndExit(error: Error | string) source

import {errorAndExit} from 'node-jungle/src/commands/utils.js'

Exit code 1 when raised error

Params:

NameTypeAttributeDescription
error Error | string

error

public filterObjects(configs: Object[], objects: Object[]): Object[] source

import {filterObjects} from 'node-jungle/src/utils.js'

Return filtered objects

Params:

NameTypeAttributeDescription
configs Object[]

configs

objects Object[]

objects

Return:

Object[]

public getTagValue(tags: Object[], key: string): string source

import {getTagValue} from 'node-jungle/src/utils.js'

Return value of tag

Params:

NameTypeAttributeDescription
tags Object[]

tag object

key string

key

Return:

string

public noCommandAndExit(name: string): Function source

import {noCommandAndExit} from 'node-jungle/src/commands/utils.js'

Output error message when unknown sub commands

Params:

NameTypeAttributeDescription
name string

sub command name

Return:

Function