import { Flags } from '@oclif/core';
import LocalScriptCommand from '../../lib/scripts/localScriptCommand.js';
import PackageCreator from '../../lib/scripts/packageCreator.js';
export default class ScriptsPackage extends LocalScriptCommand {
    static args = LocalScriptCommand.args;
    static description = 'Package a script to a local .tgz file';
    static descriptionGerund = 'Packaging script';
    static flags = {
        "destination": Flags.string({
            char: 'd',
            description: 'Destination path for the package file',
            required: true
        }),
    };
    async runImpl() {
        const creator = new PackageCreator(this.srcPath, this.parsedFlags.destination);
        await creator.create();
    }
}
