Skip to content

Commit ab4ec10

Browse files
authored
Override command type for --function and --stack deployment
1 parent ffb7356 commit ab4ec10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ var cmdOPS = (argv._[0] || 'list').toUpperCase()
675675
var optCMD = (argv._.length > 1 ? argv._[1] : undefined)
676676
var cmdArg = argv['stack'] || argv['function'] || optCMD
677677
var cmdType = cmdArg ? fs.existsSync(path.resolve(argv.location, cmdArg, "template.yaml")) ? "CF-Stack" : "Function" : undefined
678+
cmdType = argv['function'] ? "Function" : argv['stack'] ? "CF-Stack" : cmdType
679+
678680
if (argv._.length == 0) {
679681
yargs.showHelp()
680682
console.log(`\n`, ` * ${CBRIGHT}Supported command list${CRESET}:`, '\n')

0 commit comments

Comments
 (0)