({ command, options })
| 2 | import { ServerlessError, log, progress, writeText } from '@serverless/util' |
| 3 | |
| 4 | const buildArgvArray = ({ command, options }) => { |
| 5 | const argvArray = [...command] // Start with the command array |
| 6 | Object.entries(options).forEach(([key, value]) => { |
| 7 | argvArray.push(`--${key}`, `${value}`) |
| 8 | }) |
| 9 | return argvArray |
| 10 | } |
| 11 | |
| 12 | const validateCliSchema = async ({ schema, command, options, versions }) => { |
| 13 | const argv = buildArgvArray({ |
no outgoing calls
no test coverage detected
searching dependent graphs…