Skip to content

[3.0] Add --only option to SilkTouch#2591

Merged
Exanite merged 4 commits into
develop/3.0from
feature/only-option
Jun 12, 2026
Merged

[3.0] Add --only option to SilkTouch#2591
Exanite merged 4 commits into
develop/3.0from
feature/only-option

Conversation

@Exanite

@Exanite Exanite commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary of the PR

This was originally implemented in #2406 by Curin. I ported this back to the main branch now that I'm planning on adding more jobs.

I also decided to change the SilkTouch entrypoint to use a Program class instead of the top-level statement (entrypoint with no Program class/Main method) approach currently used. I like the structure that the Program provides since it prevents methods, constants, and logic from blurring together. In my opinion, top-level statements are only nice when the entrypoint is simple.

Related issues, Discord discussions, or proposals

Original implementation: https://github.com/dotnet/Silk.NET/pull/2406/changes?show-viewed-files=false#diff-029de316f704ec70da7eeb03b1ff777ca03df4c441bc519ba460d596b23ab14dL20

Further Comments

N/A

Exanite added 3 commits June 12, 2026 04:11
I've always felt the Program-class-less entrypoint approach to be less readable.
It's fine if it's only a few lines, but logic, methods, and constants start to blur together.
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

File Coverage
All files 20%

Minimum allowed coverage is 0%

Generated by 🐒 cobertura-action against 69a2a26

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Silk.NET Development Tracker Jun 12, 2026
@Exanite Exanite mentioned this pull request Jun 12, 2026
38 tasks
@Exanite Exanite merged commit b994a1f into develop/3.0 Jun 12, 2026
18 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Silk.NET Development Tracker Jun 12, 2026
@Exanite Exanite deleted the feature/only-option branch June 12, 2026 13:11
@Exanite Exanite mentioned this pull request Jun 12, 2026
72 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants