@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
22 lines (18 loc) • 537 B
text/typescript
import dotenv from 'dotenv'
import { run } from './boot'
import TerminalInterface from './interfaces/TerminalInterface'
dotenv.config({ quiet: true })
run(process.argv)
.then((results: any) => {
const code = results?.errors?.length > 0 ? 1 : 0
process.exit(code)
})
.catch((err) => {
const term = new TerminalInterface(
process.cwd(),
process.env.CLI_RENDER_STACK_TRACES !== 'false'
)
term.renderError(err)
process.exit(1)
})