Repository navigation
Implement C++ CLI tool for parsing Tomcat server.xml with configurable output modes - #1
Conversation
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
|
@copilot add workflow automatic build and publish linux release |
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Added GitHub Actions workflows in commit 28715b4: CI Workflow (
Release Workflow (
To create a release, simply tag and push: git tag v1.0.0
git push origin v1.0.0The workflow will automatically build and publish the Linux release. |
|
@copilot support Automatically finds and parses server.xml: |
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
…ages Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Implemented automatic server.xml discovery in commit ad2d5ec: Automatic Discovery:
Examples: # Auto-find in current directory
./tomport
# Recursive search in directory
./tomport /opt/tomcat-instances
# Still works with specific file
./tomport /path/to/server.xmlFeatures:
|
|
@copilot Configurable output via the --mode / -m flag: list (default) |
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
…warn on multiple paths Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Implemented configurable output modes via List Mode (default): Simple Mode: $ tomport -m simple server.xml
8005
8080
8443
8009
Table Mode: $ tomport --mode table server.xml
Server Port Service Name Connector Port Redirect Port
--------------------------------------------------------------------
8005 Catalina 8080 8443
Catalina 8009 8443
|
JonasGao
left a comment
There was a problem hiding this comment.
Add unit test and integration test
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
…eclarations Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Added comprehensive test suite in commits 0ded155 and 5db8408: Test Framework:
Unit Tests:
Integration Tests:
CI Integration:
Running tests: cd build
ctest --output-on-failureSee tests/README.md for detailed documentation. |
Co-authored-by: JonasGao <4549584+JonasGao@users.noreply.github.com>
Implementation Plan: Tomcat Port Parser CLI Tool
Test Results
✅ All 25 tests passing (11 unit tests + 14 integration tests)
Security Summary
No security vulnerabilities. The code properly handles:
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.