Add new ping test which uses default http client #325
Merged
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.
This pull request adds a new command to the CLI for checking the status of the SmartUI server using a direct HTTP request, and integrates it into the command registration. The main change is the introduction of the
pingTest
command, which provides a more robust way to verify server availability from the terminal.New CLI command for server health check
src/commander/pingTest.ts
that defines theexec:pingTest
command. This command sends a GET request to the/ping
endpoint of the SmartUI server using Node's native HTTP/HTTPS modules, and provides colored output indicating the server status.pingTest
command insrc/commander/commander.ts
and registered it with the CLI program, making it available to users. [1] [2]