2023-10-23 23:16:24 +02:00
|
|
|
import { Builtins, Cli } from "clipanion"
|
2021-06-09 20:31:45 +02:00
|
|
|
|
2023-10-23 23:16:24 +02:00
|
|
|
import { GenerateChallengeCommand } from "./commands/generate/challenge.js"
|
|
|
|
import { GenerateSolutionCommand } from "./commands/generate/solution.js"
|
|
|
|
import { RunSolutionCommand } from "./commands/run/solution.js"
|
|
|
|
import { RunTestCommand } from "./commands/run/test.js"
|
|
|
|
import { SearchCommand } from "./commands/search/index.js"
|
2021-06-09 20:31:45 +02:00
|
|
|
|
|
|
|
export const cli = new Cli({
|
2023-10-23 23:16:24 +02:00
|
|
|
binaryLabel: "programming-challenges",
|
|
|
|
binaryName: "programming-challenges",
|
|
|
|
binaryVersion: "1.0.0",
|
2021-06-09 20:31:45 +02:00
|
|
|
})
|
|
|
|
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)
|