mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-10-29 22:17:23 +01:00
docs(readme): add more usage examples
This commit is contained in:
parent
552277f22d
commit
3f5c0fe276
@ -2,9 +2,9 @@ image: 'gitpod/workspace-full'
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: 'programming-challenges'
|
- name: 'programming-challenges'
|
||||||
before: 'npm install --global npm@7 && npm clean-install'
|
before: 'npm install'
|
||||||
init: 'npm run build'
|
init: 'npm run build && npm install --global'
|
||||||
command: 'npm install --global && programming-challenges'
|
command: 'programming-challenges'
|
||||||
|
|
||||||
github:
|
github:
|
||||||
prebuilds:
|
prebuilds:
|
||||||
|
11
README.md
11
README.md
@ -25,7 +25,7 @@ Each challenge has its **solutions**, its **instructions** and **input/output ex
|
|||||||
### ✅ Programming languages available
|
### ✅ Programming languages available
|
||||||
|
|
||||||
- [C/C++ (gcc)](https://gcc.gnu.org/)
|
- [C/C++ (gcc)](https://gcc.gnu.org/)
|
||||||
- [C# (.NET)](https://docs.microsoft.com/dotnet/csharp/)
|
- [C# (Mono)](https://www.mono-project.com/)
|
||||||
- [Dart](https://dart.dev/)
|
- [Dart](https://dart.dev/)
|
||||||
- [Java (OpenJDK)](https://openjdk.java.net/)
|
- [Java (OpenJDK)](https://openjdk.java.net/)
|
||||||
- [JavaScript/TypeScript (Node.js)](https://nodejs.org/)
|
- [JavaScript/TypeScript (Node.js)](https://nodejs.org/)
|
||||||
@ -72,6 +72,15 @@ npm install --global
|
|||||||
```sh
|
```sh
|
||||||
# Discover all the commands availables
|
# Discover all the commands availables
|
||||||
programming-challenges --help
|
programming-challenges --help
|
||||||
|
|
||||||
|
# Generate a new challenge
|
||||||
|
programming-challenges generate challenge --github-user="YourGitHubName" --challenge="challenge-name"
|
||||||
|
|
||||||
|
# Generate a new solution
|
||||||
|
programming-challenges generate solution --github-user="YourGitHubName" --challenge="hello-world" --solution="solution-name" --language="python"
|
||||||
|
|
||||||
|
# Test a solution
|
||||||
|
programming-challenges run test --challenge="hello-world" --solution="solution-name" --language="python"
|
||||||
```
|
```
|
||||||
|
|
||||||
## 💡 Contributing
|
## 💡 Contributing
|
||||||
|
Loading…
Reference in New Issue
Block a user