@syntest/init
Version:
The setup application of the SynTest Framework
44 lines • 2.02 kB
JavaScript
;
/*
* Copyright 2020-2023 Delft University of Technology and SynTest contributors
*
* This file is part of SynTest Framework - SynTest Core.
*
* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
const module_1 = require("@syntest/module");
const config_1 = require("./commands/config");
const module_2 = require("./commands/module");
class InitModule extends module_1.Module {
constructor() {
super(
// eslint-disable-next-line @typescript-eslint/no-var-requires,unicorn/prefer-module, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
require("../../package.json").name,
// eslint-disable-next-line @typescript-eslint/no-var-requires,unicorn/prefer-module, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
require("../../package.json").version);
}
register(moduleManager) {
const name = "init";
const labels = ["init"];
const commands = [
(0, config_1.getConfigCommand)(name, moduleManager),
(0, module_2.getModuleCommand)(name, moduleManager),
];
const additionalOptions = new Map();
const initTool = new module_1.Tool(name, labels, "A tool for initializing SynTest projects.", commands, additionalOptions);
moduleManager.registerTool(this, initTool);
}
}
exports.default = InitModule;
//# sourceMappingURL=InitModule.js.map