@broadcom/sysview-for-zowe-cli
Version:
Zowe CLI plugin for SYSVIEW
70 lines • 2.89 kB
JavaScript
;
/*
* Copyright (c) 2020 Broadcom. All Rights Reserved. The term
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This software and all information contained therein is
* confidential and proprietary and shall not be duplicated,
* used, disclosed, or disseminated in any way except as
* authorized by the applicable license agreement, without the
* express written permission of Broadcom. All authorized
* reproductions must be marked with this language.
*
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
*
*/
const CommandDefinitionOptions_1 = require("../CommandDefinitionOptions");
const api_1 = require("../../api");
/**
* Command one [object] defintion. This definition is of imperative type "command" and therefore must have a
* command handler (which performs the "work" for this command).
*
* In this case, "command-with-options" will echo options specified on the command.
*
* Property Summary:
* =================
* "name" of the [object]. Should be a noun (e.g. data-set)
*
* "aliases" normally contains a shortened form of the command
*
* "summary" will display when issuing the help on this [objects] [action]
*
* "type" is "command" which means a handler is required
*
* "handler" is the file path to the handler (does the work)
*
* "options" an array of options
*/
const CaptureImmediateDefinition = {
name: "capture-immediate", aliases: ["cap-imm"],
summary: "Submit a capture request1",
description: "Submit a capture request2",
type: "command",
handler: __dirname + "/Capture.Immediate.handler",
profile: { optional: ["sysview"] },
positionals: [
CommandDefinitionOptions_1.CommandDefinitionOptions.CAPTURE_FILE_POSITIONAL,
],
options: [
CommandDefinitionOptions_1.CommandDefinitionOptions.CONTEXT_FIELDS_OPTION,
CommandDefinitionOptions_1.CommandDefinitionOptions.CAPTURE_DESCRIPTION_OPTION,
...api_1.SysviewSession.SYSVIEW_CONNECTION_OPTIONS,
],
examples: [
{
options: `"./my-capture.txt" --description "Top CPU Users"`,
description: "Issues a Capture containing the commands in capture file 'my-capture.txt' with the description 'Top CPU Users'"
},
]
};
module.exports = CaptureImmediateDefinition;
//# sourceMappingURL=Capture.Immediate.definition.js.map