Update src/cli.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -33,9 +33,11 @@ function main() {
|
|||||||
process.stdout.write(usage())
|
process.stdout.write(usage())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (command === 'lint' || command === 'render') {
|
||||||
if (!fs.existsSync(path.join(process.cwd(), 'orchestra.yml'))) {
|
if (!fs.existsSync(path.join(process.cwd(), 'orchestra.yml'))) {
|
||||||
throw new Error('orchestra.yml not found in current directory')
|
throw new Error('orchestra.yml not found in current directory')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (command === 'lint') {
|
if (command === 'lint') {
|
||||||
lint(manifestPath)
|
lint(manifestPath)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user