From 648d34f13ffaee458d51a973a620a3173226b238 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 6 Mar 2026 00:53:48 +0100 Subject: [PATCH 1/6] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 38 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From e9f84beb32ac91b34e3f717637bc1f13973bd6e6 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 6 Mar 2026 00:57:55 +0100 Subject: [PATCH 2/6] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea7..f3d5c41 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -2,7 +2,7 @@ name: Bug report about: Create a report to help us improve title: '' -labels: '' +labels: bug assignees: '' --- diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7..11fc491 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -2,7 +2,7 @@ name: Feature request about: Suggest an idea for this project title: '' -labels: '' +labels: enhancement assignees: '' --- From bcca13f06c005cb32e9cc731eccec53f558a71cd Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 6 Mar 2026 01:16:08 +0100 Subject: [PATCH 3/6] Fix mistakes in docs --- docs/README.md | 2 +- docs/editor.md | 2 +- docs/library-api.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 548d867..12935e6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -16,7 +16,7 @@ Each line is one statement. There are no multi-line expressions. ### Running a script from the command line ```bash -dotnet run --project YesNt.Interpreter.App -- path/to/script.ynt +yesnt path/to/script.ynt ``` ### Hello world diff --git a/docs/editor.md b/docs/editor.md index 5daf983..36c96d6 100644 --- a/docs/editor.md +++ b/docs/editor.md @@ -5,7 +5,7 @@ ## Start the editor ```bash -dotnet run --project YesNt.CodeEditor -- [optional-path-to-file.ynt] +yesntcode [optional-path-to-file.ynt] ``` If you pass a file path, it is loaded on startup. diff --git a/docs/library-api.md b/docs/library-api.md index bb6fd1a..1fcfd87 100644 --- a/docs/library-api.md +++ b/docs/library-api.md @@ -1,6 +1,6 @@ # YesNt Library API -The `YesNt.Interpreter` project is a .NET 8 class library. You can reference it from any C# project +The `YesNt.Interpreter` project is a .NET 10 class library. You can reference it from any C# project to embed the YesNt interpreter and run scripts programmatically. --- From 5b24440f0b4bb3f5665e84e04d7ca9bb723fec6b Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 6 Mar 2026 02:55:11 +0100 Subject: [PATCH 4/6] Update README Removed 'Rapid prototyping or' from the description. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bfe8236..d321c33 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ YesNt is a line-based, interpreted scripting language. The core idea is simple: YesNt is intentionally minimal and is well suited for: - Scripting in games or applications where simple syntax and customizability are needed -- Rapid prototyping or automation tasks where a lightweight embedded language is beneficial +- Automation tasks where a lightweight embedded language is beneficial - Educational purposes to learn language design by adding new statements or modifying existing ones - Embedding as a scripting engine in larger C# projects, with the ability to expose custom functionality through registered statements From 2520e1d853870b3736dca1658e251ce0a2c4036e Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:35:52 +0100 Subject: [PATCH 5/6] Update snapcraft manifest to use .NET plugin v2 --- snap/snapcraft.yaml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 29ca9b3..e1eadcc 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -18,32 +18,23 @@ description: | - `run` / `debug` to execute the open script - `format` to auto-format indentation -base: core22 +base: core24 architectures: - - build-on: amd64 - - build-on: arm64 + - build-on: [amd64, arm64] confinement: strict parts: yesnt: plugin: dotnet + dotnet-version: '10.0' dotnet-build-configuration: Release - dotnet-self-contained-runtime-identifier: linux-x64 source: ./src/YesNt.Interpreter.App - build-packages: - - dotnet-sdk-10.0 - stage-packages: - - libicu70 yesntcode: plugin: dotnet + dotnet-version: '10.0' dotnet-build-configuration: Release - dotnet-self-contained-runtime-identifier: linux-x64 source: ./src/YesNt.CodeEditor - build-packages: - - dotnet-sdk-10.0 - stage-packages: - - libicu70 apps: yesnt: From 519ed3bed9bf7ae3c9c5a4eb66df9fcda4beab16 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:38:53 +0100 Subject: [PATCH 6/6] Update build and test commands to specify src directory --- .github/workflows/dotnet.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..df5d6e8 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,28 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build ./src --no-restore + - name: Test + run: dotnet test ./src --no-build --verbosity normal