Implement SRunner CLI with Terminal.GUI and System.CommandLine#1
Merged
Implement SRunner CLI with Terminal.GUI and System.CommandLine#1
Conversation
Owner
|
@copilot No code has been submited |
Co-authored-by: Maxiimeeb <48930628+Maxiimeeb@users.noreply.github.com>
Co-authored-by: Maxiimeeb <48930628+Maxiimeeb@users.noreply.github.com>
Co-authored-by: Maxiimeeb <48930628+Maxiimeeb@users.noreply.github.com>
Co-authored-by: Maxiimeeb <48930628+Maxiimeeb@users.noreply.github.com>
Co-authored-by: Maxiimeeb <48930628+Maxiimeeb@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add basic structure for C# CLI project SRunner
Implement SRunner CLI with Terminal.GUI and System.CommandLine
Jan 28, 2026
Contributor
Author
The code has been submitted to the
Build status: ✅ Successful (0 warnings, 0 errors) You can verify the changes with: git log --oneline copilot/add-basic-cli-structure
git diff main..copilot/add-basic-cli-structure --statThe branch is pushed to origin. If you're not seeing a PR, you may need to create one from this branch to main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstrap C# CLI application for managing service stacks with both command-line and interactive TUI modes.
Architecture
src/Core: Business logic layer
ServiceRunner: Service lifecycle manager with case-insensitive name resolution and duplicate preventionServiceConfig: Validated configuration model with required Name/Command propertiessrc/Cli: Presentation layer
Program.cs: System.CommandLine integration with--interactiveflagInteractiveUI.cs: Terminal.GUI implementation for service CRUD operationsImplementation Notes
System.CommandLine Version: Using 2.0.0-beta4 instead of requested RC version due to API surface changes in RC builds. Beta4 provides stable
RootCommand,Option<T>, andSetHandlerAPIs.Validation: Properties throw
ArgumentExceptionon empty/whitespace input.AddServicethrowsInvalidOperationExceptionon duplicates, handled gracefully in UI with error dialogs.Usage
Documentation
.github/PROJECT_STRUCTURE.mdprovides architecture overview, development guidelines, and extension patterns for future contributors.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.