@sasjs/cli 6.8.3 → 6.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -67,8 +67,17 @@ var FlowSubCommand;
|
|
|
67
67
|
})(FlowSubCommand || (FlowSubCommand = {}));
|
|
68
68
|
var syntax = 'flow <subCommand> [options]';
|
|
69
69
|
var usage = 'sasjs flow <execute> --source <flowPath> [options]';
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// the codes are read from the enum rather than written out, so a member
|
|
71
|
+
// inserted ahead of them cannot make this text describe numbers the command no
|
|
72
|
+
// longer returns. A function rather than a constant: `types/command/index.ts`
|
|
73
|
+
// re-exports `parse` before `ReturnCode`, and `parse` loads every command, so
|
|
74
|
+
// reading the enum while this module initialises finds it undefined.
|
|
75
|
+
var commandDescription = function () {
|
|
76
|
+
return 'Performs operations on flows of jobs.\n' +
|
|
77
|
+
"Exits ".concat(command_1.ReturnCode.FlowError, " when a flow finishes with a job that did not ") +
|
|
78
|
+
"succeed, and ".concat(command_1.ReturnCode.InternalError, " when the flow could not be executed ") +
|
|
79
|
+
'at all.';
|
|
80
|
+
};
|
|
72
81
|
var examples = [
|
|
73
82
|
{
|
|
74
83
|
command: 'sasjs flow execute --source /local/flow.json --logFolder /local/log/folder --csvFile /local/some.csv --target myTarget --streamLog',
|
|
@@ -114,7 +123,7 @@ var FlowCommand = /** @class */ (function (_super) {
|
|
|
114
123
|
return _super.call(this, args, {
|
|
115
124
|
parseOptions: parseOptions,
|
|
116
125
|
usage: usage,
|
|
117
|
-
description:
|
|
126
|
+
description: commandDescription(),
|
|
118
127
|
examples: examples,
|
|
119
128
|
syntax: syntax
|
|
120
129
|
}) || this;
|
package/package.json
CHANGED