1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-10-29 22:17:23 +01:00
programming-challenges/cli/index.ts

12 lines
243 B
TypeScript
Raw Normal View History

#!/usr/bin/env node
import { Cli } from 'clipanion'
2022-02-19 18:30:29 +01:00
import { cli } from './cli.js'
2022-02-19 18:30:29 +01:00
const [, , ...arguments_] = process.argv
2022-02-19 18:30:29 +01:00
cli.runExit(arguments_, Cli.defaultContext).catch(() => {
console.error('Error occurred...')
process.exit(1)
})