mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
21 lines
482 B
JavaScript
Executable File
21 lines
482 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
let argv = require('minimist')(process.argv.slice(2));
|
|
|
|
if (argv.debug) process.env.DEBUG = '*';
|
|
|
|
let S = require('../lib/Serverless'),
|
|
SUtils = require('../lib/utils'),
|
|
Project = require('../lib/Project'),
|
|
serverless = new S({
|
|
projectPath: SUtils.findProjectPath(process.cwd()),
|
|
interactive: typeof process.env.CI === 'undefined'
|
|
});
|
|
|
|
serverless.init()
|
|
.then(function(){
|
|
serverless.command(argv);
|
|
});
|