We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb7356 commit ab4ec10Copy full SHA for ab4ec10
cli.js
@@ -675,6 +675,8 @@ var cmdOPS = (argv._[0] || 'list').toUpperCase()
675
var optCMD = (argv._.length > 1 ? argv._[1] : undefined)
676
var cmdArg = argv['stack'] || argv['function'] || optCMD
677
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
+
680
if (argv._.length == 0) {
681
yargs.showHelp()
682
console.log(`\n`, ` * ${CBRIGHT}Supported command list${CRESET}:`, '\n')
0 commit comments