@zowe/imperative
Version:
framework for building configurable CLIs
45 lines • 1.75 kB
JavaScript
;
/*
* 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.convertProfilesDefinition = void 0;
const path_1 = require("path");
const utilities_1 = require("../../../../../utilities");
/**
* Definition of the convert-profiles command.
* @type {ICommandDefinition}
*/
exports.convertProfilesDefinition = {
name: "convert-profiles",
aliases: ["convert"],
type: "command",
handler: (0, path_1.join)(__dirname, "convert-profiles.handler"),
summary: "Convert V1 profiles to a current Zowe client configuration",
description: `Convert v1 profiles to a global ${utilities_1.ImperativeConfig.instance.rootCommandName}.config.json file.`,
options: [{
name: "prompt",
description: "Prompt for confirmation. Use --no-prompt to disable prompting.",
type: "boolean",
defaultValue: true
}, {
name: "delete",
description: "Delete the existing profiles on disk and any securely stored secrets.",
type: "boolean"
}],
examples: [{
description: "Convert V1 profiles to a new Zowe client configuration without prompting",
options: "--no-prompt"
}, {
description: "Convert V1 profiles to a new Zowe client configuration and delete the old V1 profiles",
options: "--delete"
}]
};
//# sourceMappingURL=convert-profiles.definition.js.map