import { Flags } from '@oclif/core';
import LocalScriptCommand from '../../lib/scripts/localScriptCommand.js';
import ScriptPusher from '../../lib/scripts/scriptPusher.js';
export default class ScriptsPush extends LocalScriptCommand {
    static args = LocalScriptCommand.args;
    static description = 'Push a script';
    static descriptionGerund = 'Pushing script';
    static flags = {
        "force": Flags.boolean({ char: 'f', default: false, description: 'Force push' }),
        "name": Flags.string({ char: 'n', description: 'Script name (defaults to directory name)', required: false }),
    };
    async runImpl() {
        const pusher = new ScriptPusher(this.parsedFlags.name, this.parsedFlags.force, this.srcPath);
        await pusher.push();
    }
}
