"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.UssFileDefinition = void 0;
const Download_options_1 = require("../Download.options");
// Does not use the import in anticipation of some internationalization work to be done later.
const strings = require("../../-strings-/en").default.DOWNLOAD.ACTIONS.USS_FILE;
/**
 * Download data set command definition containing its description, examples and/or options
 * @type {ICommandDefinition}
 */
exports.UssFileDefinition = {
    name: "uss-file",
    aliases: ["uf", "uss"],
    summary: strings.SUMMARY,
    description: strings.DESCRIPTION,
    type: "command",
    handler: __dirname + "/UssFile.handler",
    profile: {
        optional: ["zosmf"]
    },
    positionals: [
        {
            name: "ussFileName",
            description: strings.POSITIONALS.USSFILENAME,
            type: "string",
            required: true
        }
    ],
    options: [
        Download_options_1.DownloadOptions.attributes,
        Download_options_1.DownloadOptions.file,
        Download_options_1.DownloadOptions.binary,
        Download_options_1.DownloadOptions.encoding
    ].sort((a, b) => a.name.localeCompare(b.name)),
    examples: [
        {
            description: strings.EXAMPLES.EX1,
            options: `"/a/ibmuser/my_text.txt" --file ./my_text.txt`
        },
        {
            description: strings.EXAMPLES.EX2,
            options: `"/a/ibmuser/MyJava.class" --binary --file "java/MyJava.class"`
        },
        {
            description: strings.EXAMPLES.EX3,
            options: `"/a/ibmuser/MyJava.class" --attributes /path/to/.zosattributes --file "java/MyJava.class"`
        }
    ]
};
//# sourceMappingURL=UssFile.definition.js.map