How to use the twilio-run/dist/commands/deploy.cliInfo.options function in twilio-run

To help you get started, we’ve selected a few twilio-run examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github twilio-labs / plugin-serverless / src / commands / serverless / deploy.js View on Github external
await super.run();

    let { flags, args } = this.parse(FunctionsDeploy);
    flags = normalizeFlags(flags);

    const externalOptions = createExternalCliOptions(flags, this.twilioClient);

    const opts = Object.assign({}, flags, args);
    return handler(opts, externalOptions);
  }
}

FunctionsDeploy.description = describe;

FunctionsDeploy.flags = Object.assign(
  convertYargsOptionsToOclifFlags(cliInfo.options),
  { profile: TwilioClientCommand.flags.profile }
);

module.exports = FunctionsDeploy;