mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
refactor(CLI): Reuse already imported module
This commit is contained in:
parent
3e58d628e7
commit
be441ccd91
@ -287,9 +287,8 @@ class Serverless {
|
||||
configuration: this.configurationInput,
|
||||
}
|
||||
);
|
||||
const resolveInput = require('./cli/resolve-input');
|
||||
resolveInput.clear();
|
||||
const { options, isHelpRequest } = resolveInput(commandsSchema);
|
||||
resolveCliInput.clear();
|
||||
const { options, isHelpRequest } = resolveCliInput(commandsSchema);
|
||||
if (options.version) {
|
||||
require('./cli/render-version')();
|
||||
return;
|
||||
@ -347,7 +346,7 @@ class Serverless {
|
||||
sls: require('./configuration/variables/sources/instance-dependent/get-sls')(this),
|
||||
},
|
||||
options: filterSupportedOptions(options, {
|
||||
commandSchema: resolveInput.commandSchema,
|
||||
commandSchema: resolveCliInput.commandSchema,
|
||||
providerName,
|
||||
}),
|
||||
propertyPathsToResolve: isHelpRequest ? new Set(['plugins']) : null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user