UNPKG

@zowe/imperative

Version:
96 lines 3.05 kB
"use strict"; /* * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v2.0 which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-v20.html * * SPDX-License-Identifier: EPL-2.0 * * Copyright Contributors to the Zowe Project. * */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoInitConstants = void 0; class AutoInitConstants { } exports.AutoInitConstants = AutoInitConstants; AutoInitConstants.AUTO_INIT_OPTION_GROUP = "Automatic Config Initialization Options"; /** * Option used to specify whether or not to use the user layer of the config */ AutoInitConstants.AUTO_INIT_OPTION_USER_CONFIG = { name: "user-config", aliases: ["uc"], description: "Save config in the user layer", type: "boolean", defaultValue: false, group: AutoInitConstants.AUTO_INIT_OPTION_GROUP }; /** * Option used to specify whether or not to use the global layer of the config */ AutoInitConstants.AUTO_INIT_OPTION_GLOBAL_CONFIG = { name: "global-config", aliases: ["gc"], description: "Save config in the global layer", type: "boolean", defaultValue: false, group: AutoInitConstants.AUTO_INIT_OPTION_GROUP }; /** * Option used to specify whether or not to do a dry run of the initialization */ AutoInitConstants.AUTO_INIT_OPTION_DRY_RUN = { name: "dry-run", aliases: ["dr", "dry"], description: "Display the outcome of the initialization without saving", type: "boolean", conflictsWith: ["edit"], group: AutoInitConstants.AUTO_INIT_OPTION_GROUP }; /** * Option used to specify whether or not to open an editor for the config */ AutoInitConstants.AUTO_INIT_OPTION_EDIT = { name: "edit", aliases: ["e"], description: "Open in editor after initializing the configuration", type: "boolean", conflictsWith: ["dry-run"], group: AutoInitConstants.AUTO_INIT_OPTION_GROUP }; /** * Option used to override default editor */ AutoInitConstants.AUTO_INIT_OPTION_EDITOR = { name: "editor", aliases: ["ed"], description: `Editor that overrides the default editor for this file type. Set the option to the editor's executable file location ` + `or the program's name: ie "--editor notepad"`, type: "string", implies: ["edit"] }; /** * Option used to specify whether or not to overwrite the config */ AutoInitConstants.AUTO_INIT_OPTION_OVERWRITE = { name: "overwrite", aliases: ["ow"], description: "Replaces an existing configuration with a new configuration", type: "boolean", defaultValue: false, group: AutoInitConstants.AUTO_INIT_OPTION_GROUP, implies: ["for-sure"] }; /** * Option used to confirm an overwrite */ AutoInitConstants.AUTO_INIT_OPTION_FOR_SURE = { name: "for-sure", aliases: ["f"], description: "Confirms the overwrite option", type: "boolean", defaultValue: false, group: AutoInitConstants.AUTO_INIT_OPTION_GROUP }; //# sourceMappingURL=AutoInitConstants.js.map