From 3f5c0fe27615d2e8dd1d8b447e1f77f39b95758b Mon Sep 17 00:00:00 2001 From: Divlo Date: Sun, 5 Sep 2021 11:20:19 +0200 Subject: [PATCH] docs(readme): add more usage examples --- .gitpod.yml | 6 +++--- README.md | 11 ++++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index edf3eb4..c7d97ac 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,9 +2,9 @@ image: 'gitpod/workspace-full' tasks: - name: 'programming-challenges' - before: 'npm install --global npm@7 && npm clean-install' - init: 'npm run build' - command: 'npm install --global && programming-challenges' + before: 'npm install' + init: 'npm run build && npm install --global' + command: 'programming-challenges' github: prebuilds: diff --git a/README.md b/README.md index 5bd434a..99a4ea7 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Each challenge has its **solutions**, its **instructions** and **input/output ex ### ✅ Programming languages available - [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/) - [Java (OpenJDK)](https://openjdk.java.net/) - [JavaScript/TypeScript (Node.js)](https://nodejs.org/) @@ -72,6 +72,15 @@ npm install --global ```sh # Discover all the commands availables 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