"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
/**
 * Copyright 2017-2020 Plexus Interop Deutsche Bank AG
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var BaseJavaGenCommand_1 = require("./BaseJavaGenCommand");
var DefaultOptions_1 = require("./DefaultOptions");
var protoJs_1 = require("../common/protoJs");
var GenJsonCommand = /** @class */ (function (_super) {
    tslib_1.__extends(GenJsonCommand, _super);
    function GenJsonCommand() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.plexusGenArgs = function (opts) {
            return tslib_1.__spreadArrays(['--type=json_meta'], _this.optionArgs(opts), ["--protoc=" + protoJs_1.getPbJsExecPath()]);
        };
        _this.generalDescription = function () { return 'generate metadata in JSON format'; };
        _this.name = function () { return 'gen-json-meta'; };
        _this.options = function () { return [DefaultOptions_1.baseDir(), DefaultOptions_1.out(), DefaultOptions_1.verbose(), DefaultOptions_1.excludePattern()]; };
        return _this;
    }
    return GenJsonCommand;
}(BaseJavaGenCommand_1.BaseJavaGenCommand));
exports.GenJsonCommand = GenJsonCommand;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR2VuSnNvbkNvbW1hbmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tbWFuZHMvR2VuSnNvbkNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHO0FBQ0gsMkRBQTBEO0FBQzFELG1EQUF5RTtBQUV6RSw2Q0FBb0Q7QUFFcEQ7SUFBb0MsMENBQWtCO0lBQXREO1FBQUEscUVBWUM7UUFWVSxtQkFBYSxHQUE0QixVQUFBLElBQUk7WUFDaEQsK0JBQVEsa0JBQWtCLEdBQUssS0FBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsR0FBRSxjQUFZLHlCQUFlLEVBQUksR0FBRTtRQUMzRixDQUFDLENBQUE7UUFFTSx3QkFBa0IsR0FBRyxjQUFNLE9BQUEsa0NBQWtDLEVBQWxDLENBQWtDLENBQUM7UUFFOUQsVUFBSSxHQUFHLGNBQU0sT0FBQSxlQUFlLEVBQWYsQ0FBZSxDQUFDO1FBRTdCLGFBQU8sR0FBbUIsY0FBTSxPQUFBLENBQUMsd0JBQU8sRUFBRSxFQUFFLG9CQUFHLEVBQUUsRUFBRSx3QkFBTyxFQUFFLEVBQUUsK0JBQWMsRUFBRSxDQUFDLEVBQS9DLENBQStDLENBQUM7O0lBRTNGLENBQUM7SUFBRCxxQkFBQztBQUFELENBQUMsQUFaRCxDQUFvQyx1Q0FBa0IsR0FZckQ7QUFaWSx3Q0FBYyJ9