Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let { flags, args } = this.parse(FunctionsActivate);
flags = normalizeFlags(flags);
const externalOptions = createExternalCliOptions(flags, this.twilioClient);
const opts = Object.assign({}, flags, args);
return handler(opts, externalOptions);
}
}
FunctionsActivate.description = describe;
FunctionsActivate.flags = Object.assign(
{},
convertYargsOptionsToOclifFlags(cliInfo.options),
{ profile: TwilioClientCommand.flags.profile }
);
module.exports = FunctionsActivate;
async run() {
await super.run();
let { flags, args } = this.parse(FunctionsActivate);
flags = normalizeFlags(flags);
const externalOptions = createExternalCliOptions(flags, this.twilioClient);
const opts = Object.assign({}, flags, args);
return handler(opts, externalOptions);
}
}
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;
async run() {
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);
}
}
class FunctionsListTemplates extends Command {
async run() {
let { flags, args } = this.parse(FunctionsListTemplates);
flags = normalizeFlags(flags);
const opts = Object.assign({}, flags, args);
return handler(opts, undefined);
}
}
FunctionsListTemplates.description = describe;
FunctionsListTemplates.args = [];
FunctionsListTemplates.flags = Object.assign(
convertYargsOptionsToOclifFlags(cliInfo.options)
);
module.exports = FunctionsListTemplates;
async run() {
let { flags, args } = this.parse(FunctionsListTemplates);
flags = normalizeFlags(flags);
const opts = Object.assign({}, flags, args);
return handler(opts, undefined);
}
}
flags = normalizeFlags(flags);
const externalOptions = createExternalCliOptions(flags, this.twilioClient);
const opts = Object.assign({}, flags, args);
return handler(opts, externalOptions);
}
}
FunctionsList.description = describe;
FunctionsList.args = [
{
name: 'types',
required: false,
default: cliInfo.argsDefaults.types,
description:
'Comma separated list of things to list (services,environments,functions,assets,variables)',
},
];
FunctionsList.flags = Object.assign(
convertYargsOptionsToOclifFlags(cliInfo.options),
{ profile: TwilioClientCommand.flags.profile }
);
module.exports = FunctionsList;
}
FunctionsList.description = describe;
FunctionsList.args = [
{
name: 'types',
required: false,
default: cliInfo.argsDefaults.types,
description:
'Comma separated list of things to list (services,environments,functions,assets,variables)',
},
];
FunctionsList.flags = Object.assign(
convertYargsOptionsToOclifFlags(cliInfo.options),
{ profile: TwilioClientCommand.flags.profile }
);
module.exports = FunctionsList;
async run() {
await super.run();
let { flags, args } = this.parse(FunctionsList);
flags = normalizeFlags(flags);
const externalOptions = createExternalCliOptions(flags, this.twilioClient);
const opts = Object.assign({}, flags, args);
return handler(opts, externalOptions);
}
}
return handler(opts, undefined);
}
}
FunctionsNew.description = describe;
FunctionsNew.args = [
{
name: 'namespace',
required: false,
description: 'The namespace your assets/functions should be grouped under',
},
];
FunctionsNew.flags = Object.assign(
convertYargsOptionsToOclifFlags(cliInfo.options)
);
module.exports = FunctionsNew;