/**
 * Creates metadata for commands that work with application and version parameters
 * @param {Object} config - Configuration object
 * @param {string} config.name - Command name
 * @param {string} config.desc - Command description
 * @param {string} config.usage - Command usage string
 * @returns {Object} Command metadata object
 */
export const createApplicationVersionMetadata = ({ name, desc, usage }) => {
    return {
        name,
        desc,
        usage,
        options: {
            application: {
                keys: [],
                type: 'string',
                mandatory: true,
                multiple: false,
                helpLiteral: 'APPLICATION',
                helpText: 'Name of the deployed application',
                index: 0
            },
            version: {
                keys: [],
                type: 'string',
                mandatory: false,
                multiple: false,
                helpLiteral: 'VERSION',
                helpText: 'Name of the application version',
                index: 1
            }
        }
    };
};
