Function
Static Public Summary | ||
public |
defaultOutputHelp(program: Object) Output help |
|
public |
errorAndExit(error: Error | string) 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 |
noCommandAndExit(name: string): Function 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:
Name | Type | Attribute | Description |
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
public filterObjects(configs: Object[], objects: Object[]): Object[] source
import {filterObjects} from 'node-jungle/src/utils.js'
Return filtered objects
public getTagValue(tags: Object[], key: string): string source
import {getTagValue} from 'node-jungle/src/utils.js'
Return value of tag