Skip to content

Commit 62f7fa9

Browse files
committed
modify cli to use flowNode (nested flow)
1 parent 70d5fab commit 62f7fa9

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/flowtest-cli/bin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const argv = yargs(hideBin(process.argv))
114114
process.exit(1);
115115
//console.log(chalk.green(JSON.stringify(result)));
116116
} catch (error) {
117-
console.error(chalk.red(`Error running flow due to: ${error}`));
117+
console.error(chalk.red(`Internal error running flow`));
118118
process.exit(1);
119119
}
120120
} else {

packages/flowtest-cli/graph/Graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class Graph {
174174
const sNode = new setVarNode(node.data, prevNodeOutputData, this.envVariables);
175175
const newVariable = sNode.evaluate();
176176
if (newVariable != undefined) {
177-
console.log(chalk.green(` ✓ `) + chalk.dim(`Evaluate variable: ${JSON.stringify(newVariable)}`));
177+
console.log(chalk.green(` ✓ `) + chalk.dim(`Set variable: ${JSON.stringify(newVariable)}`));
178178
this.envVariables = {
179179
...this.envVariables,
180180
...newVariable,

packages/flowtest-cli/graph/compute/requestnode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class requestNode extends Node {
4141
// step 3
4242
const options = this.formulateRequest(finalUrl, variablesDict);
4343

44+
console.log(chalk.green(` ✓ `) + chalk.dim(`type = ${this.nodeData.requestType.toUpperCase()}`));
4445
console.log(chalk.green(` ✓ `) + chalk.dim(`url = ${finalUrl}`));
4546

4647
const res = await this.runHttpRequest(options);

0 commit comments

Comments
 (0)