import { Args, Flags } from '@oclif/core';
import BaseCommand from '../../lib/baseCommand.js';
import ScriptPuller from '../../lib/scripts/scriptPuller.js';
export default class ScriptsPull extends BaseCommand {
    static args = {
        "name": Args.string({ description: 'Name of the script to pull', required: true }),
    };
    static description = 'Pulls a remote script';
    static descriptionGerund = 'Pulling script';
    static flags = {
        "destination": Flags.string({ char: 'd', description: 'Destination path', required: false }),
    };
    async runImpl() {
        const scriptPuller = new ScriptPuller(this.parsedArgs.name, this.parsedFlags.destination);
        await scriptPuller.pull();
    }
}
