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

feat(cli): add commands/run/solution

This commit is contained in:
Divlo
2022-08-30 15:48:07 +02:00
parent 6427b3d273
commit d6a6c706ce
8 changed files with 272 additions and 13 deletions

View File

@@ -76,13 +76,16 @@ npm install --global
programming-challenges --help
# Generate a new challenge
programming-challenges generate challenge --github-user="YourGitHubName" --challenge="challenge-name"
programming-challenges generate challenge --github-user="YourGitHubName" --challenge="hello-world"
# Generate a new solution
programming-challenges generate solution --github-user="YourGitHubName" --challenge="challenge-name" --solution="function" --language="python"
programming-challenges generate solution --github-user="YourGitHubName" --challenge="hello-world" --solution="function" --language="python"
# Test a solution
programming-challenges run test --challenge="challenge-name" --solution="function" --language="python"
programming-challenges run test --challenge="hello-world" --solution="function" --language="python"
# Run a solution with specific `input.txt` file
programming-challenges run solution --challenge="hello-world" --solution="function" --language="python" --input-path="./challenges/hello-world/test/1/input.txt" --output
```
## 💡 Contributing