@plexus-interop/cli
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -11,3 +11,3 @@ | ||
``` | ||
node plexus.js gen-ts -b ../../../samples/quick-start/registry -i CcyPairRateProvider.interop | ||
node plexus.js gen-ts -b ../../../samples/greeting/registry -i greeting_client.interop | ||
``` | ||
@@ -18,4 +18,10 @@ | ||
``` | ||
node plexus.js gen-csharp -b ../../../samples/quick-start/registry -i CcyPairRateProvider.interop | ||
node plexus.js gen-csharp -b -b ../../../samples/greeting/registry -i greeting_client.interop | ||
``` | ||
# Validate Metadata | ||
``` | ||
node plexus.js validate -b ../../../samples/greeting/registry | ||
``` | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -27,3 +27,3 @@ * See the License for the specific language governing permissions and | ||
options: () => Option[]; | ||
optionArgs: (optValues: any, separator?: string | undefined) => string[]; | ||
optionArgs: (optValues: any, separator?: string | undefined, nameConverter?: (k: string) => string) => string[]; | ||
optionsExampleArgs: () => string[]; | ||
@@ -30,0 +30,0 @@ log(msg: string, ...args: any[]): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Option_1 = require("./Option"); | ||
var DefaultOptions_1 = require("./DefaultOptions"); | ||
var BaseCommand = /** @class */ (function () { | ||
@@ -11,13 +10,29 @@ function BaseCommand() { | ||
this.options = function () { return []; }; | ||
this.optionArgs = function (optValues, separator) { | ||
this.optionArgs = function (optValues, separator, nameConverter) { | ||
if (nameConverter === void 0) { nameConverter = function (k) { return k; }; } | ||
return _this.options().reduce(function (seed, option) { | ||
var name = "--" + option.longName; | ||
var value = optValues[option.longName]; | ||
var optionArgs = !!separator ? [name + "=" + value] : [name, value]; | ||
return seed.concat(optionArgs); | ||
if (!value) { | ||
return seed; | ||
} | ||
var name = "--" + nameConverter(option.longName); | ||
if (option.isFlag) { | ||
return seed.concat("" + name); | ||
} | ||
else { | ||
var optionArgs = !!separator ? ["" + name + separator + value] : [name, value]; | ||
return seed.concat(optionArgs); | ||
} | ||
}, []); | ||
}; | ||
this.optionsExampleArgs = function () { | ||
return _this.options().reduce(function (seed, option) { | ||
return seed.concat(["-" + option.shortName, option.exampleValue]); | ||
return _this.options() | ||
.filter(function (o) { return o.exampleValue || o.isFlag; }) | ||
.reduce(function (seed, option) { | ||
if (option.isFlag) { | ||
return seed.concat("-" + option.shortName); | ||
} | ||
else { | ||
return seed.concat(["-" + option.shortName, option.exampleValue]); | ||
} | ||
}, []); | ||
@@ -38,4 +53,2 @@ }; | ||
this.options().forEach(function (o) { return commandBuilder.option(Option_1.getFlags(o), o.description, o.defaultValue); }); | ||
var verboseOption = DefaultOptions_1.verbose(); | ||
commandBuilder = commandBuilder.option(Option_1.getFlags(verboseOption), verboseOption.description, verboseOption.defaultValue); | ||
commandBuilder = commandBuilder.action(function (opts) { | ||
@@ -69,7 +82,7 @@ // need to do it manually :( | ||
BaseCommand.prototype.fail = function (error) { | ||
this.log('Failed to execute', error); | ||
this.log('Finished with error', error); | ||
process.exit(1); | ||
}; | ||
BaseCommand.prototype.optionValuesToString = function (opts) { | ||
return this.options().reduce(function (seed, option) { return seed + " " + opts[option.longName]; }, ''); | ||
return this.options().reduce(function (seed, option) { return seed + " " + option.longName + "=" + opts[option.longName]; }, ''); | ||
}; | ||
@@ -89,2 +102,2 @@ BaseCommand.prototype.validateRequiredOpts = function (options, commanderOpts) { | ||
exports.BaseCommand = BaseCommand; | ||
//# s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yxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUMsTUFBTSxDQUFTLFVBQUMsSUFBSSxFQUFFLE1BQU0sSUFBSyxPQUFHLElBQUksU0FBSSxNQUFNLENBQUMsUUFBUSxTQUFJLElBQUksQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFHLEVBQXJELENBQXFELEVBQUUsRUFBRSxDQUFDLENBQUM7SUFDdEgsQ0FBQztJQUVNLDBDQUFvQixHQUEzQixVQUE0QixPQUFpQixFQUFFLGFBQWtCO1FBQzdELEVBQUUsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7WUFDVixNQUFNLENBQUMsT0FBTztpQkFDVCxNQUFNLENBQUMsVUFBQSxDQUFDLElBQUksT0FBQSxDQUFDLENBQUMsQ0FBQyxDQUFDLFVBQVUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQTVDLENBQTRDLENBQUM7aUJBQ3pELEdBQUcsQ0FBQyxVQUFBLENBQUMsSUFBSSxPQUFBLE1BQUksaUJBQVEsQ0FBQyxDQUFDLENBQUMseUJBQXNCLEVBQXJDLENBQXFDLENBQUMsQ0FBQztRQUN6RCxDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDSixNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ2QsQ0FBQztJQUNMLENBQUM7SUFFTCxrQkFBQztBQUFELENBQUMsQUFsR0QsSUFrR0M7QUFsR3FCLGtDQUFXIn0= |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
@@ -7,4 +7,5 @@ "use strict"; | ||
var GenCSharpCommand_1 = require("./GenCSharpCommand"); | ||
var ValidateMetadataCommand_1 = require("./ValidateMetadataCommand"); | ||
function commands() { | ||
return [new GenTsCommand_1.GenTsCommand(), new GenJsonCommand_1.GenJsonCommand(), new GenProtoCommand_1.GenProtoCommand(), new GenCSharpCommand_1.GenCSharpCommand()]; | ||
return [new GenTsCommand_1.GenTsCommand(), new GenJsonCommand_1.GenJsonCommand(), new GenProtoCommand_1.GenProtoCommand(), new GenCSharpCommand_1.GenCSharpCommand(), new ValidateMetadataCommand_1.ValidateMetadataCommand()]; | ||
} | ||
@@ -18,2 +19,2 @@ exports.commands = commands; | ||
exports.printGeneralHelp = printGeneralHelp; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tbWFuZHMvY29tbWFuZHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFpQkEsK0NBQThDO0FBQzlDLG1EQUFrRDtBQUNsRCxxREFBb0Q7QUFDcEQsdURBQXNEO0FBRXREO0lBQ0ksTUFBTSxDQUFDLENBQUMsSUFBSSwyQkFBWSxFQUFFLEVBQUUsSUFBSSwrQkFBYyxFQUFFLEVBQUUsSUFBSSxpQ0FBZSxFQUFFLEVBQUUsSUFBSSxtQ0FBZ0IsRUFBRSxDQUFDLENBQUM7QUFDckcsQ0FBQztBQUZELDRCQUVDO0FBRUQ7SUFDSSxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2hCLE9BQU8sQ0FBQyxHQUFHLENBQUMsdURBQXVELENBQUMsQ0FBQztJQUNyRSxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0FBQ3BCLENBQUM7QUFKRCw0Q0FJQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tbWFuZHMvY29tbWFuZHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFpQkEsK0NBQThDO0FBQzlDLG1EQUFrRDtBQUNsRCxxREFBb0Q7QUFDcEQsdURBQXNEO0FBQ3RELHFFQUFvRTtBQUVwRTtJQUNJLE1BQU0sQ0FBQyxDQUFDLElBQUksMkJBQVksRUFBRSxFQUFFLElBQUksK0JBQWMsRUFBRSxFQUFFLElBQUksaUNBQWUsRUFBRSxFQUFFLElBQUksbUNBQWdCLEVBQUUsRUFBRSxJQUFJLGlEQUF1QixFQUFFLENBQUMsQ0FBQztBQUNwSSxDQUFDO0FBRkQsNEJBRUM7QUFFRDtJQUNJLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDaEIsT0FBTyxDQUFDLEdBQUcsQ0FBQyx1REFBdUQsQ0FBQyxDQUFDO0lBQ3JFLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUM7QUFDcEIsQ0FBQztBQUpELDRDQUlDIn0= |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -22,3 +22,4 @@ * See the License for the specific language governing permissions and | ||
export declare function out(defaultValue?: string): Option; | ||
export declare function outFile(): Option; | ||
export declare function namespace(defaultValue?: string): Option; | ||
export declare function verbose(): Option; |
@@ -37,2 +37,12 @@ "use strict"; | ||
exports.out = out; | ||
function outFile() { | ||
return { | ||
shortName: 'o', | ||
longName: 'out', | ||
exampleValue: 'plexus.out.log', | ||
description: 'output file', | ||
isRequired: false | ||
}; | ||
} | ||
exports.outFile = outFile; | ||
function namespace(defaultValue) { | ||
@@ -54,9 +64,7 @@ if (defaultValue === void 0) { defaultValue = 'plexus'; } | ||
longName: 'verbose', | ||
exampleValue: 'true', | ||
isRequired: true, | ||
description: 'print verbose code generation output', | ||
defaultValue: "false" | ||
isFlag: true, | ||
description: 'print verbose output' | ||
}; | ||
} | ||
exports.verbose = verbose; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVmYXVsdE9wdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tbWFuZHMvRGVmYXVsdE9wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFpQkEsMkJBQTZCO0FBRTdCO0lBQ0ksTUFBTSxDQUFDO1FBQ0gsU0FBUyxFQUFFLEdBQUc7UUFDZCxRQUFRLEVBQUUsU0FBUztRQUNuQixZQUFZLEVBQUUsVUFBVTtRQUN4QixXQUFXLEVBQUUsZ0NBQWdDO1FBQzdDLFVBQVUsRUFBRSxJQUFJO1FBQ2hCLFl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FQUFFLGtCQUFrQjtRQUMvQixVQUFVLEVBQUUsSUFBSTtRQUNoQixZQUFZLGNBQUE7S0FDZixDQUFDO0FBQ04sQ0FBQztBQVRELGtCQVNDO0FBRUQ7SUFDSSxNQUFNLENBQUM7UUFDSCxTQUFTLEVBQUUsR0FBRztRQUNkLFFBQVEsRUFBRSxLQUFLO1FBQ2YsWUFBWSxFQUFFLGdCQUFnQjtRQUM5QixXQUFXLEVBQUUsYUFBYTtRQUMxQixVQUFVLEVBQUUsS0FBSztLQUNwQixDQUFDO0FBQ04sQ0FBQztBQVJELDBCQVFDO0FBRUQsbUJBQTBCLFlBQStCO0lBQS9CLDZCQUFBLEVBQUEsdUJBQStCO0lBQ3JELE1BQU0sQ0FBQztRQUNILFNBQVMsRUFBRSxHQUFHO1FBQ2QsUUFBUSxFQUFFLFdBQVc7UUFDckIsWUFBWSxFQUFFLFFBQVE7UUFDdEIsVUFBVSxFQUFFLElBQUk7UUFDaEIsV0FBVyxFQUFFLFdBQVc7UUFDeEIsWUFBWSxjQUFBO0tBQ2YsQ0FBQztBQUNOLENBQUM7QUFURCw4QkFTQztBQUVEO0lBQ0ksTUFBTSxDQUFDO1FBQ0gsU0FBUyxFQUFFLEdBQUc7UUFDZCxRQUFRLEVBQUUsU0FBUztRQUNuQixNQUFNLEVBQUUsSUFBSTtRQUNaLFdBQVcsRUFBRSxzQkFBc0I7S0FDdEMsQ0FBQztBQUNOLENBQUM7QUFQRCwwQkFPQyJ9 |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -36,3 +36,3 @@ * See the License for the specific language governing permissions and | ||
_this.generalDescription = function () { return 'generate C# client and messages definitions for specified entry point'; }; | ||
_this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out('Generated'), DefaultOptions_1.plexusEntryPoint(), DefaultOptions_1.namespace('Plexus.Interop.Testing.Generated')]; }; | ||
_this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out('Generated'), DefaultOptions_1.plexusEntryPoint(), DefaultOptions_1.namespace('Plexus.Interop.Testing.Generated'), DefaultOptions_1.verbose()]; }; | ||
return _this; | ||
@@ -63,2 +63,2 @@ } | ||
exports.GenCSharpCommand = GenCSharpCommand; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR2VuQ1NoYXJwQ29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21tYW5kcy9HZW5DU2hhcnBDb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRztBQUNILG1EQUE2RTtBQUU3RSx1Q0FBb0U7QUFDcEUsNkNBQTRDO0FBQzVDLDZDQUFnRDtBQUNoRCwyQ0FBcUQ7QUFFckQ7SUFBc0MsNENBQVc7SUFBakQ7UUFBQSxxRUFzQkM7UUFwQlUsbUJBQWEsR0FBNEIsVUFBQSxJQUFJO1lBQ2hELE1BQU0sRUFBRSxlQUFlLFNBQUssS0FBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsRUFBRTtRQUN2RCxDQUFDLENBQUE7UUFFTSxVQUFJLEdBQUcsY0FBTSxPQUFBLFlBQVksRUFBWixDQUFZLENBQUM7UUF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xDQUFDLEdBQUUsY0FBWSxjQUFnQixJQUFHLElBQUksQ0FBQyxPQUFPLEtBQUssTUFBTSxDQUFDLEVBQUE7O3dCQUExSSxTQUEwSSxDQUFDOzs7OztLQUU5STtJQUVMLHVCQUFDO0FBQUQsQ0FBQyxBQXRCRCxDQUFzQyx5QkFBVyxHQXNCaEQ7QUF0QlksNENBQWdCIn0= |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -34,3 +34,3 @@ * See the License for the specific language governing permissions and | ||
_this.name = function () { return 'gen-json-meta'; }; | ||
_this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out()]; }; | ||
_this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out(), DefaultOptions_1.verbose()]; }; | ||
return _this; | ||
@@ -41,2 +41,2 @@ } | ||
exports.GenJsonCommand = GenJsonCommand; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR2VuSnNvbkNvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tbWFuZHMvR2VuSnNvbkNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHO0FBQ0gsMkRBQTBEO0FBQzFELG1EQUFnRDtBQUVoRCw2Q0FBb0Q7QUFFcEQ7SUFBb0MsMENBQWtCO0lBQXREO1FBQUEscUVBWUM7UUFWVSxtQkFBYSxHQUE0QixVQUFBLElBQUk7WUFDaEQsTUFBTSxFQUFFLGtCQUFrQixTQUFLLEtBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLEdBQUUsY0FBWSx5QkFBZSxFQUFJLEdBQUU7UUFDM0YsQ0FBQyxDQUFBO1FBRU0sd0JBQWtCLEdBQUcsY0FBTSxPQUFBLGtDQUFrQyxFQUFsQyxDQUFrQyxDQUFDO1FBRTlELFVBQUksR0FBRyxjQUFNLE9BQUEsZUFBZSxFQUFmLENBQWUsQ0FBQztRQUU3QixhQUFPLEdBQW1CLGNBQU0sT0FBQSxDQUFDLHdCQUFPLEVBQUUsRUFBRSxvQkFBRyxFQUFFLENBQUMsRUFBbEIsQ0FBa0IsQ0FBQzs7SUFFOUQsQ0FBQztJQUFELHFCQUFDO0FBQUQsQ0FBQyxBQVpELENBQW9DLHVDQUFrQixHQVlyRDtBQVpZLHdDQUFjIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR2VuSnNvbkNvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tbWFuZHMvR2VuSnNvbkNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHO0FBQ0gsMkRBQTBEO0FBQzFELG1EQUF5RDtBQUV6RCw2Q0FBb0Q7QUFFcEQ7SUFBb0MsMENBQWtCO0lBQXREO1FBQUEscUVBWUM7UUFWVSxtQkFBYSxHQUE0QixVQUFBLElBQUk7WUFDaEQsTUFBTSxFQUFFLGtCQUFrQixTQUFLLEtBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLEdBQUUsY0FBWSx5QkFBZSxFQUFJLEdBQUU7UUFDM0YsQ0FBQyxDQUFBO1FBRU0sd0JBQWtCLEdBQUcsY0FBTSxPQUFBLGtDQUFrQyxFQUFsQyxDQUFrQyxDQUFDO1FBRTlELFVBQUksR0FBRyxjQUFNLE9BQUEsZUFBZSxFQUFmLENBQWUsQ0FBQztRQUU3QixhQUFPLEdBQW1CLGNBQU0sT0FBQSxDQUFDLHdCQUFPLEVBQUUsRUFBRSxvQkFBRyxFQUFFLEVBQUUsd0JBQU8sRUFBRSxDQUFDLEVBQTdCLENBQTZCLENBQUM7O0lBRXpFLENBQUM7SUFBRCxxQkFBQztBQUFELENBQUMsQUFaRCxDQUFvQyx1Q0FBa0IsR0FZckQ7QUFaWSx3Q0FBYyJ9 |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -33,3 +33,3 @@ * See the License for the specific language governing permissions and | ||
_this.name = function () { return 'gen-proto'; }; | ||
_this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out(), DefaultOptions_1.plexusEntryPoint()]; }; | ||
_this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out(), DefaultOptions_1.plexusEntryPoint(), DefaultOptions_1.verbose()]; }; | ||
return _this; | ||
@@ -40,2 +40,2 @@ } | ||
exports.GenProtoCommand = GenProtoCommand; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR2VuUHJvdG9Db21tYW5kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbW1hbmRzL0dlblByb3RvQ29tbWFuZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7QUFDSCwyREFBMEQ7QUFDMUQsbURBQWtFO0FBR2xFO0lBQXFDLDJDQUF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BTSxPQUFBLHNEQUFzRCxFQUF0RCxDQUFzRCxDQUFDO1FBRWxGLFVBQUksR0FBRyxjQUFNLE9BQUEsV0FBVyxFQUFYLENBQVcsQ0FBQztRQUV6QixhQUFPLEdBQW1CLGNBQU0sT0FBQSxDQUFDLHdCQUFPLEVBQUUsRUFBRSxvQkFBRyxFQUFFLEVBQUUsaUNBQWdCLEVBQUUsRUFBRSx3QkFBTyxFQUFFLENBQUMsRUFBakQsQ0FBaUQsQ0FBQzs7SUFFN0YsQ0FBQztJQUFELHNCQUFDO0FBQUQsQ0FBQyxBQVpELENBQXFDLHVDQUFrQixHQVl0RDtBQVpZLDBDQUFlIn0= |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -39,3 +39,3 @@ * See the License for the specific language governing permissions and | ||
_this.generalDescription = function () { return 'generate Typescript client and messages definitions for specified entry point'; }; | ||
_this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out(), DefaultOptions_1.plexusEntryPoint(), DefaultOptions_1.namespace()]; }; | ||
_this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out(), DefaultOptions_1.plexusEntryPoint(), DefaultOptions_1.namespace(), DefaultOptions_1.verbose()]; }; | ||
return _this; | ||
@@ -87,2 +87,2 @@ } | ||
exports.GenTsCommand = GenTsCommand; | ||
//# sourceMappingURL=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FBQyw0QkFBNEIsQ0FBQyxDQUFDO3dCQUN2QyxrQkFBVSxDQUFDLGFBQWEsQ0FBQyxDQUFDO3dCQUUxQixJQUFJLENBQUMsR0FBRyxDQUFDLDBDQUEwQyxDQUFDLENBQUM7d0JBQy9DLFVBQVUsR0FBRyxzQkFBc0IsQ0FBQzt3QkFDMUMscUJBQU0sMkJBQWlCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLFVBQVUsQ0FBQyxFQUFFLFVBQVUsQ0FBQyxFQUFBOzt3QkFBcEUsU0FBb0UsQ0FBQzt3QkFFckUsSUFBSSxDQUFDLEdBQUcsQ0FBQywyQkFBMkIsQ0FBQyxDQUFDO3dCQUNqQixxQkFBTSxzQkFBZSxFQUFFLEVBQUE7O3dCQUF0QyxZQUFZLEdBQUcsU0FBdUI7d0JBQ3RDLFdBQVcsR0FBRyx3QkFBaUIsRUFBRSxDQUFDO3dCQUN4QyxxQkFBTSxxQkFBVyxDQUFDLFlBQVksR0FBRyxNQUFNLEVBQUUsV0FBVyxTQUFLLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLEdBQUcsSUFBSSxDQUFDLE9BQU8sS0FBSyxNQUFNLENBQUMsRUFBQTs7d0JBQTVHLFNBQTRHLENBQUM7Ozs7O0tBRWhIO0lBRUwsbUJBQUM7QUFBRCxDQUFDLEFBMUNELENBQWtDLHlCQUFXLEdBMEM1QztBQTFDWSxvQ0FBWSJ9 |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -21,4 +21,5 @@ * See the License for the specific language governing permissions and | ||
longName: string; | ||
exampleValue: string; | ||
exampleValue?: string; | ||
description?: string; | ||
isFlag?: boolean; | ||
isRequired?: boolean; | ||
@@ -25,0 +26,0 @@ defaultValue?: any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function getFlags(o) { | ||
return !!o.isRequired ? | ||
"-" + o.shortName + ", --" + o.longName + " <" + o.longName + ">" | ||
: "-" + o.shortName + ", --" + o.longName; | ||
return !!o.isRequired ? "-" + o.shortName + ", --" + o.longName + " <" + o.longName + ">" | ||
: !!o.isFlag ? "-" + o.shortName + ", --" + o.longName | ||
: "-" + o.shortName + ", --" + o.longName + " [" + o.longName + "]"; | ||
} | ||
exports.getFlags = getFlags; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3B0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbW1hbmRzL09wdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQXlCQSxrQkFBeUIsQ0FBUztJQUM5QixNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUNuQixNQUFJLENBQUMsQ0FBQyxTQUFTLFlBQU8sQ0FBQyxDQUFDLFFBQVEsVUFBSyxDQUFDLENBQUMsUUFBUSxNQUFHO1FBQzlDLENBQUMsQ0FBQyxNQUFJLENBQUMsQ0FBQyxTQUFTLFlBQU8sQ0FBQyxDQUFDLFFBQVUsQ0FBQztBQUNqRCxDQUFDO0FBSkQsNEJBSUMifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3B0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbW1hbmRzL09wdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQTBCQSxrQkFBeUIsQ0FBUztJQUM5QixNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDLE1BQUksQ0FBQyxDQUFDLFNBQVMsWUFBTyxDQUFDLENBQUMsUUFBUSxVQUFLLENBQUMsQ0FBQyxRQUFRLE1BQUc7UUFDbEUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxNQUFJLENBQUMsQ0FBQyxTQUFTLFlBQU8sQ0FBQyxDQUFDLFFBQVU7WUFDN0MsQ0FBQyxDQUFDLE1BQUksQ0FBQyxDQUFDLFNBQVMsWUFBTyxDQUFDLENBQUMsUUFBUSxVQUFLLENBQUMsQ0FBQyxRQUFRLE1BQUcsQ0FBQztBQUNyRSxDQUFDO0FBSkQsNEJBSUMifQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -14,3 +14,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -14,3 +14,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -14,3 +14,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -14,3 +14,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -14,3 +14,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -19,0 +19,0 @@ * See the License for the specific language governing permissions and |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -14,3 +14,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -25,3 +25,3 @@ * See the License for the specific language governing permissions and | ||
var command = new GenJsonCommand_1.GenJsonCommand(); | ||
expect(command.usageExamples()).toBe(' $ plexus gen-json-meta -b metadata -o src/gen'); | ||
expect(command.usageExamples()).toBe(' $ plexus gen-json-meta -b metadata -o src/gen -v'); | ||
}); | ||
@@ -47,2 +47,2 @@ it('Generates option args', function () { | ||
}); | ||
//# sourceM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copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -17,3 +17,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -20,0 +20,0 @@ * See the License for the specific language governing permissions and |
@@ -6,6 +6,6 @@ "use strict"; | ||
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -17,3 +17,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -20,0 +20,0 @@ * See the License for the specific language governing permissions and |
@@ -6,6 +6,6 @@ "use strict"; | ||
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -17,3 +17,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -20,0 +20,0 @@ * See the License for the specific language governing permissions and |
export declare function getTestBaseDir(): string; | ||
export declare function getInvalidTestBaseDir(): string; | ||
export declare function getTestClientInput(): string; | ||
@@ -3,0 +4,0 @@ export declare function getApprovalsBaseDir(): string; |
@@ -5,6 +5,6 @@ "use strict"; | ||
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -16,3 +16,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -29,2 +29,6 @@ * See the License for the specific language governing permissions and | ||
exports.getTestBaseDir = getTestBaseDir; | ||
function getInvalidTestBaseDir() { | ||
return path.resolve(files_1.getBaseDir(), '../../../dsl/gen/test/src/main/resources'); | ||
} | ||
exports.getInvalidTestBaseDir = getInvalidTestBaseDir; | ||
function getTestClientInput() { | ||
@@ -68,2 +72,2 @@ return 'greeting_client.interop'; | ||
exports.unifyWhiteSpaces = unifyWhiteSpaces; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90ZXN0cy9jb21tYW5kcy9zZXR1cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O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EdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxrQkFBVSxFQUFFLEVBQUUsVUFBVSxFQUFFLFFBQVEsQ0FBQyxDQUFDO0lBQzdELHFCQUFVLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDbkIsTUFBTSxDQUFDLE1BQU0sQ0FBQztBQUNsQixDQUFDO0FBSkQsc0NBSUM7QUFFRCxvQkFBaUMsS0FBYSxFQUFFLE1BQWM7Ozs7O3dCQUNyQyxxQkFBTSxvQkFBWSxDQUFDLEtBQUssQ0FBQyxFQUFBOztvQkFBeEMsWUFBWSxHQUFHLFNBQXlCO29CQUN4QixxQkFBTSxvQkFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFBOztvQkFBMUMsYUFBYSxHQUFHLFNBQTBCO29CQUNoRCxPQUFPLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDO29CQUNuQixPQUFPLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDO29CQUNwQixPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsRUFBRSxZQUFZLENBQUMsTUFBTSxFQUFFLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBQztvQkFDbEUsc0JBQU8sZ0JBQWdCLENBQUMsWUFBWSxDQUFDLEtBQUssZ0JBQWdCLENBQUMsYUFBYSxDQUFDLEVBQUM7Ozs7Q0FDN0U7QUFQRCxnQ0FPQztBQUVELDBCQUFpQyxDQUFTO0lBQ3RDLE1BQU0sQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRSxHQUFHLENBQUMsQ0FBQztBQUNsQyxDQUFDO0FBRkQsNENBRUMifQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -14,3 +14,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -14,3 +14,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -17,0 +17,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
@@ -4,0 +4,0 @@ * |
{ | ||
"name": "@plexus-interop/cli", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"main": "plexus.js", | ||
@@ -5,0 +5,0 @@ "description": "Plexus Interop CLI tools", |
#!/usr/bin/env node | ||
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
@@ -5,0 +5,0 @@ * |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -21,3 +21,2 @@ * See the License for the specific language governing permissions and | ||
import * as commander from 'commander'; | ||
import { verbose } from './DefaultOptions'; | ||
@@ -27,3 +26,3 @@ export abstract class BaseCommand implements Command { | ||
public abstract name: () => string; | ||
public abstract action(opts: any): Promise<void>; | ||
@@ -37,8 +36,18 @@ | ||
public optionArgs = (optValues: any, separator?: string): string[] => { | ||
public optionArgs = ( | ||
optValues: any, | ||
separator?: string, | ||
nameConverter: (k: string) => string = k => k): string[] => { | ||
return this.options().reduce<string[]>((seed, option) => { | ||
const name = `--${option.longName}`; | ||
const value = optValues[option.longName]; | ||
const optionArgs = !!separator ? [`${name}=${value}`] : [name, value]; | ||
return seed.concat(optionArgs); | ||
if (!value) { | ||
return seed; | ||
} | ||
const name = `--${nameConverter(option.longName)}`; | ||
if (option.isFlag) { | ||
return seed.concat(`${name}`); | ||
} else { | ||
const optionArgs = !!separator ? [`${name}${separator}${value}`] : [name, value]; | ||
return seed.concat(optionArgs); | ||
} | ||
}, []); | ||
@@ -48,5 +57,11 @@ } | ||
public optionsExampleArgs = () => { | ||
return this.options().reduce<string[]>((seed, option) => { | ||
return seed.concat([`-${option.shortName}`, option.exampleValue]); | ||
}, []); | ||
return this.options() | ||
.filter(o => o.exampleValue || o.isFlag) | ||
.reduce<string[]>((seed, option) => { | ||
if (option.isFlag) { | ||
return seed.concat(`-${option.shortName}`); | ||
} else { | ||
return seed.concat([`-${option.shortName}`, option.exampleValue as string]); | ||
} | ||
}, []); | ||
} | ||
@@ -62,8 +77,6 @@ | ||
this.options().forEach(o => commandBuilder.option(getFlags(o), o.description, o.defaultValue)); | ||
const verboseOption = verbose(); | ||
commandBuilder = commandBuilder.option(getFlags(verboseOption), verboseOption.description, verboseOption.defaultValue); | ||
commandBuilder = commandBuilder.action(opts => { | ||
// need to do it manually :( | ||
// https://github.com/tj/commander.js/issues/44 | ||
this.log('Validating input args'); | ||
this.log('Validating input args'); | ||
const errors = this.validateRequiredOpts(this.options(), opts); | ||
@@ -84,3 +97,3 @@ if (errors.length > 0) { | ||
commandBuilder.on('--help', () => { | ||
console.log(''); | ||
console.log(''); | ||
console.log(' Examples:'); | ||
@@ -93,5 +106,5 @@ console.log(''); | ||
} | ||
public fail(error: any): void { | ||
this.log('Failed to execute', error); | ||
this.log('Finished with error', error); | ||
process.exit(1); | ||
@@ -101,3 +114,3 @@ } | ||
public optionValuesToString(opts: any): string { | ||
return this.options().reduce<string>((seed, option) => `${seed} ${opts[option.longName]}`, ''); | ||
return this.options().reduce<string>((seed, option) => `${seed} ${option.longName}=${opts[option.longName]}`, ''); | ||
} | ||
@@ -104,0 +117,0 @@ |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -23,5 +23,6 @@ * See the License for the specific language governing permissions and | ||
import { GenCSharpCommand } from './GenCSharpCommand'; | ||
import { ValidateMetadataCommand } from './ValidateMetadataCommand'; | ||
export function commands(): Command[] { | ||
return [new GenTsCommand(), new GenJsonCommand(), new GenProtoCommand(), new GenCSharpCommand()]; | ||
return [new GenTsCommand(), new GenJsonCommand(), new GenProtoCommand(), new GenCSharpCommand(), new ValidateMetadataCommand()]; | ||
} | ||
@@ -28,0 +29,0 @@ |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -53,2 +53,12 @@ * See the License for the specific language governing permissions and | ||
export function outFile(): Option { | ||
return { | ||
shortName: 'o', | ||
longName: 'out', | ||
exampleValue: 'plexus.out.log', | ||
description: 'output file', | ||
isRequired: false | ||
}; | ||
} | ||
export function namespace(defaultValue: string = 'plexus'): Option { | ||
@@ -69,7 +79,5 @@ return { | ||
longName: 'verbose', | ||
exampleValue: 'true', | ||
isRequired: true, | ||
description: 'print verbose code generation output', | ||
defaultValue: `false` | ||
isFlag: true, | ||
description: 'print verbose output' | ||
}; | ||
} |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and | ||
*/ | ||
import { baseDir, out, plexusEntryPoint, namespace } from './DefaultOptions'; | ||
import { baseDir, out, plexusEntryPoint, namespace, verbose } from './DefaultOptions'; | ||
import { Option } from './Option'; | ||
@@ -36,3 +36,3 @@ import { getJavaExecPath, getJavaGenLibPath } from '../common/java'; | ||
public options: () => Option[] = () => [baseDir(), out('Generated'), plexusEntryPoint(), namespace('Plexus.Interop.Testing.Generated')]; | ||
public options: () => Option[] = () => [baseDir(), out('Generated'), plexusEntryPoint(), namespace('Plexus.Interop.Testing.Generated'), verbose()]; | ||
@@ -39,0 +39,0 @@ public async action(opts: any): Promise<void> { |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -19,3 +19,3 @@ * See the License for the specific language governing permissions and | ||
import { BaseJavaGenCommand } from './BaseJavaGenCommand'; | ||
import { baseDir, out } from './DefaultOptions'; | ||
import { baseDir, out, verbose } from './DefaultOptions'; | ||
import { Option } from './Option'; | ||
@@ -34,4 +34,4 @@ import { getPbJsExecPath } from '../common/protoJs'; | ||
public options: () => Option[] = () => [baseDir(), out()]; | ||
public options: () => Option[] = () => [baseDir(), out(), verbose()]; | ||
} |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -19,3 +19,3 @@ * See the License for the specific language governing permissions and | ||
import { BaseJavaGenCommand } from './BaseJavaGenCommand'; | ||
import { baseDir, out, plexusEntryPoint } from './DefaultOptions'; | ||
import { baseDir, out, plexusEntryPoint, verbose } from './DefaultOptions'; | ||
import { Option } from './Option'; | ||
@@ -33,4 +33,4 @@ | ||
public options: () => Option[] = () => [baseDir(), out(), plexusEntryPoint()]; | ||
public options: () => Option[] = () => [baseDir(), out(), plexusEntryPoint(), verbose()]; | ||
} |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -18,3 +18,3 @@ * See the License for the specific language governing permissions and | ||
*/ | ||
import { baseDir, out, plexusEntryPoint, namespace } from './DefaultOptions'; | ||
import { baseDir, out, plexusEntryPoint, namespace, verbose } from './DefaultOptions'; | ||
import { Option } from './Option'; | ||
@@ -39,3 +39,3 @@ import { getJavaExecPath, getJavaGenLibPath } from '../common/java'; | ||
public options: () => Option[] = () => [baseDir(), out(), plexusEntryPoint(), namespace()]; | ||
public options: () => Option[] = () => [baseDir(), out(), plexusEntryPoint(), namespace(), verbose()]; | ||
@@ -42,0 +42,0 @@ public async action(opts: any): Promise<void> { |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -21,4 +21,5 @@ * See the License for the specific language governing permissions and | ||
longName: string; | ||
exampleValue: string; | ||
exampleValue?: string; | ||
description?: string; | ||
isFlag?: boolean; | ||
isRequired?: boolean; | ||
@@ -29,5 +30,5 @@ defaultValue?: any; | ||
export function getFlags(o: Option): string { | ||
return !!o.isRequired ? | ||
`-${o.shortName}, --${o.longName} <${o.longName}>` | ||
: `-${o.shortName}, --${o.longName}`; | ||
return !!o.isRequired ? `-${o.shortName}, --${o.longName} <${o.longName}>` | ||
: !!o.isFlag ? `-${o.shortName}, --${o.longName}` | ||
: `-${o.shortName}, --${o.longName} [${o.longName}]`; | ||
} |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/** | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -26,3 +26,3 @@ * See the License for the specific language governing permissions and | ||
const command: BaseCommand = new GenJsonCommand(); | ||
expect(command.usageExamples()).toBe(' $ plexus gen-json-meta -b metadata -o src/gen'); | ||
expect(command.usageExamples()).toBe(' $ plexus gen-json-meta -b metadata -o src/gen -v'); | ||
}); | ||
@@ -29,0 +29,0 @@ |
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -26,2 +26,6 @@ * See the License for the specific language governing permissions and | ||
export function getInvalidTestBaseDir(): string { | ||
return path.resolve(getBaseDir(), '../../../dsl/gen/test/src/main/resources'); | ||
} | ||
export function getTestClientInput(): string { | ||
@@ -28,0 +32,0 @@ return 'greeting_client.interop'; |
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
/* | ||
* Copyright 2017 Plexus Interop Deutsche Bank AG | ||
* Copyright 2017-2018 Plexus Interop Deutsche Bank AG | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* Licensed under the Apache License, Version 2.0 (the 'License'); | ||
* you may not use this file except in compliance with the License. | ||
@@ -12,3 +12,3 @@ * You may obtain a copy of the License at | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* distributed under the License is distributed on an 'AS IS' BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
@@ -15,0 +15,0 @@ * See the License for the specific language governing permissions and |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14406239
104
3244