Members
string
# EnvVars
This enum provides a centralized list of environment variable names used across the project. It helps maintain consistency and prevents typos when referencing these variables in different parts of the code.
Enumeration of environment variables used in the Fabric Weaver project
Example
import { EnvVars } from '../core/constants/env-vars';
const binFolder = process.env[EnvVars.FABRIC_BIN_FOLDER];
string
# FabricCAClientCommand
This enum represents all the possible commands that can be executed using the Fabric CA Client.
Enumeration of available Fabric CA Client commands.
string
# readonly FabricLogLevel
Enumeration of available log levels for Hyperledger Fabric components. These levels determine the verbosity and type of information logged by the system.
Log levels for Fabric components.
Methods
# overrideNonUndefined(target, source)
Overrides properties of the target object with non-undefined values from the source object.
Overrides properties of the target object with non-undefined values from the source object.
Parameters:
| Name | Type | Description |
|---|---|---|
target |
The object to be modified |
|
source |
The object containing override values |
The modified target object
# resolvePath(inputPath)
Resolves a provided path to an absolute path.
Resolves a provided path to an absolute path. If the input path is already absolute, it returns it unchanged. If it's relative, it resolves it based on the current working directory.
Parameters:
| Name | Type | Description |
|---|---|---|
inputPath |
The path to evaluate. |
An absolute path.
# run() → {void}
Parses the command-line arguments and executes the appropriate command
.Parses the command-line arguments and executes the appropriate command
void