"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.verbose = exports.namespace = exports.outFile = exports.out = exports.plexusEntryPoint = exports.generalEntryPoint = exports.excludePattern = exports.baseDir = exports.targetBaseDir = void 0;
/**
 * 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 path = require("path");
function targetBaseDir() {
    return {
        shortName: 'tb',
        longName: 'targetBaseDir',
        exampleValue: 'target/folder',
        description: 'target metadata base directory',
        isRequired: true,
        defaultValue: process.cwd(),
    };
}
exports.targetBaseDir = targetBaseDir;
function baseDir() {
    return {
        shortName: 'b',
        longName: 'baseDir',
        exampleValue: 'metadata',
        description: 'plexus metadata base directory',
        isRequired: true,
        defaultValue: process.cwd(),
    };
}
exports.baseDir = baseDir;
function excludePattern() {
    return {
        shortName: 'e',
        longName: 'exclude',
        exampleValue: '.*options.*',
        description: 'exclude pattern (regexp) to filter *.proto files',
        isRequired: false,
        defaultValue: '',
    };
}
exports.excludePattern = excludePattern;
function generalEntryPoint() {
    return {
        shortName: 'i',
        longName: 'input',
        exampleValue: 'plexus_application.interop',
        isRequired: true,
        description: 'entry point file',
    };
}
exports.generalEntryPoint = generalEntryPoint;
function plexusEntryPoint() {
    return {
        shortName: 'i',
        longName: 'input',
        exampleValue: 'plexus_application.interop',
        isRequired: true,
        description: "file containing Plexus Component's entry point, e.g. rate_provider.interop",
    };
}
exports.plexusEntryPoint = plexusEntryPoint;
function out(defaultValue) {
    if (defaultValue === void 0) { defaultValue = path.join(process.cwd(), 'gen'); }
    return {
        shortName: 'o',
        longName: 'out',
        exampleValue: 'src/gen',
        description: 'output directory',
        isRequired: true,
        defaultValue: defaultValue,
    };
}
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) {
    if (defaultValue === void 0) { defaultValue = 'plexus'; }
    return {
        shortName: 'n',
        longName: 'namespace',
        exampleValue: 'plexus',
        isRequired: true,
        description: 'namespace',
        defaultValue: defaultValue,
    };
}
exports.namespace = namespace;
function verbose() {
    return {
        shortName: 'v',
        longName: 'verbose',
        isFlag: true,
        description: 'print verbose output',
    };
}
exports.verbose = verbose;
//# sourceMappingURL=DefaultOptions.js.map