"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenJsonCommand = void 0;
var tslib_1 = require("tslib");
/**
 * Copyright 2017-2022 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 protoJs_1 = require("../common/protoJs");
var BaseJavaGenCommand_1 = require("./BaseJavaGenCommand");
var DefaultOptions_1 = require("./DefaultOptions");
var GenJsonCommand = /** @class */ (function (_super) {
    (0, tslib_1.__extends)(GenJsonCommand, _super);
    function GenJsonCommand() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.plexusGenArgs = function (opts) { return (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([
            '--type=json_meta'
        ], _this.optionArgs(opts), true), [
            "--protoc=" + (0, protoJs_1.getPbJsExecPath)(),
        ], false); };
        _this.generalDescription = function () { return 'generate metadata in JSON format'; };
        _this.name = function () { return 'gen-json-meta'; };
        _this.options = function () { return [(0, DefaultOptions_1.baseDir)(), (0, DefaultOptions_1.out)(), (0, DefaultOptions_1.verbose)(), (0, DefaultOptions_1.excludePattern)()]; };
        return _this;
    }
    return GenJsonCommand;
}(BaseJavaGenCommand_1.BaseJavaGenCommand));
exports.GenJsonCommand = GenJsonCommand;
//# sourceMappingURL=GenJsonCommand.js.map