1
0
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-12-11 00:21:24 +01:00

feat: rewrite programming-challenges CLI (#3)

This commit is contained in:
Divlo
2021-06-09 20:31:45 +02:00
committed by GitHub
parent 7aa12f313e
commit 677a55a9d8
256 changed files with 16829 additions and 1881 deletions

16
cli/cli.ts Normal file
View File

@@ -0,0 +1,16 @@
import { Builtins, Cli } from 'clipanion'
import { GenerateChallengeCommand } from './commands/generate/challenge'
import { GenerateSolutionCommand } from './commands/generate/solution'
import { RunTestCommand } from './commands/run/test'
export const cli = new Cli({
binaryLabel: 'programming-challenges',
binaryName: 'programming-challenges',
binaryVersion: '1.0.0'
})
cli.register(Builtins.HelpCommand)
cli.register(Builtins.VersionCommand)
cli.register(GenerateChallengeCommand)
cli.register(GenerateSolutionCommand)
cli.register(RunTestCommand)