1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

build(deps): update latest

This commit is contained in:
Divlo
2023-01-10 23:15:36 +01:00
parent 1a12e0db0c
commit bc6ad699fc
20 changed files with 536 additions and 9974 deletions

View File

@ -5,9 +5,9 @@ import chalk from 'chalk'
import { Challenge } from '../../services/Challenge.js'
export class GenerateChallengeCommand extends Command {
static paths = [['generate', 'challenge']]
public static override paths = [['generate', 'challenge']]
static usage = {
public static override usage = {
description: 'Create the basic files needed for a new challenge.'
}
@ -23,7 +23,7 @@ export class GenerateChallengeCommand extends Command {
validator: typanion.isString()
})
async execute(): Promise<number> {
public async execute(): Promise<number> {
try {
const challenge = await Challenge.generate({
name: this.challenge,

View File

@ -5,9 +5,9 @@ import chalk from 'chalk'
import { Solution } from '../../services/Solution.js'
export class GenerateSolutionCommand extends Command {
static paths = [['generate', 'solution']]
public static override paths = [['generate', 'solution']]
static usage = {
public static override usage = {
description: 'Create the basic files needed for a new solution.'
}
@ -35,7 +35,7 @@ export class GenerateSolutionCommand extends Command {
validator: typanion.isString()
})
async execute(): Promise<number> {
public async execute(): Promise<number> {
try {
const solution = await Solution.generate({
name: this.solutionName,

View File

@ -11,9 +11,9 @@ import { Solution } from '../../services/Solution.js'
import { TemporaryFolder } from '../../services/TemporaryFolder.js'
export class RunSolutionCommand extends Command {
static paths = [['run', 'solution']]
public static override paths = [['run', 'solution']]
static usage = {
public static override usage = {
description: 'Run the solution with the given `input.txt` file.'
}
@ -45,7 +45,7 @@ export class RunSolutionCommand extends Command {
description: 'Display the output of the solution.'
})
async execute(): Promise<number> {
public async execute(): Promise<number> {
console.log()
try {
await TemporaryFolder.cleanAll()

View File

@ -10,9 +10,9 @@ import { SolutionTestsResult } from '../../services/SolutionTestsResult.js'
import { TemporaryFolder } from '../../services/TemporaryFolder.js'
export class RunTestCommand extends Command {
static paths = [['run', 'test']]
public static override paths = [['run', 'test']]
static usage = {
public static override usage = {
description:
'Test if the solution is correct and display where it succeeds and fails.'
}
@ -44,7 +44,7 @@ export class RunTestCommand extends Command {
description: 'Base of the current branch (usually master).'
})
async execute(): Promise<number> {
public async execute(): Promise<number> {
console.log()
try {
await TemporaryFolder.cleanAll()

View File

@ -9,9 +9,9 @@ import { template } from '../../services/Template.js'
import { Challenge } from '../../services/Challenge.js'
export class SearchCommand extends Command {
static paths = [['search']]
public static override paths = [['search']]
static usage = {
public static override usage = {
description: 'Search challenges in the programming language specified.'
}
@ -26,7 +26,7 @@ export class SearchCommand extends Command {
validator: typanion.isString()
})
async execute(): Promise<number> {
public async execute(): Promise<number> {
try {
await template.verifySupportedProgrammingLanguage(
this.programmingLanguage