1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-12-08 00:45:29 +01:00
programming-challenges/cli/cli.ts

21 lines
751 B
TypeScript
Raw Normal View History

import { Builtins, Cli } from 'clipanion'
2022-02-19 18:30:29 +01:00
import { GenerateChallengeCommand } from './commands/generate/challenge.js'
import { GenerateSolutionCommand } from './commands/generate/solution.js'
2022-08-30 15:48:07 +02:00
import { RunSolutionCommand } from './commands/run/solution.js'
2022-02-19 18:30:29 +01:00
import { RunTestCommand } from './commands/run/test.js'
2023-01-05 18:29:07 +01:00
import { SearchCommand } from './commands/search/index.js'
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)
2022-08-30 15:48:07 +02:00
cli.register(RunSolutionCommand)
2023-01-05 18:29:07 +01:00
cli.register(SearchCommand)