Merge pull request #7 from devsapp/wss/fix-fc-159

fix: fc 159, command parse to inputs
This commit is contained in:
wss-git 2021-08-06 13:43:47 +08:00 committed by GitHub
commit 3684d13b0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export default class FcRemoteInvoke {
const args: string = (inputs?.args || '').replace(/(^\s*)|(\s*$)/g, '');
logger.debug(`input args: ${args}`);
const parsedArgs: {[key: string]: any} = core.commandParse({ args }, {
const parsedArgs: {[key: string]: any} = core.commandParse({ ...inputs, args }, {
boolean: ['help', 'event-stdin'],
string: ['invocation-type', 'event', 'event-file', 'region', 'domain-name','service-name', 'function-name', 'qualifier'],
alias: {
@ -70,7 +70,7 @@ export default class FcRemoteInvoke {
const {
e: event,
f: eventFile,
'event-file': eventStdin,
'event-stdin': eventStdin,
'invocation-type': invocationType = 'sync',
'domain-name': domainName,
} = argsData;