Repository navigation
feat: add title banner, CLI flags, and non-interactive mode to the port checker - #6
Merged
Merged
Conversation
…ort checker Give chkports.py and connchk.py a big ASCII "connchk" banner with a tagline, argparse-based CLIs, prettier aligned pass/fail output with a summary, a configurable per-connection timeout, and script-friendly exit codes. Both run fully non-interactively via flags or fall back to guided prompts. connchk now drives the remote checker non-interactively by passing flags, and gains SSH key (--identity) and CONNCHK_PASSWORD auth. Update the README usage and add a hero screenshot. Claude-Session: https://claude.ai/code/session_01JeFxzs9zLRYBeqAL5ie4Ci
iamteedoh
pushed a commit
that referenced
this pull request
Jul 16, 2026
🤖 I have created a release *beep* *boop* --- ## [0.2.0](v0.1.0...v0.2.0) (2026-07-16) ### Features * add title banner, CLI flags, and non-interactive mode to the port checker ([#6](#6)) ([1ad006c](1ad006c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Jira: CON-1 — Make this program look more beautiful
What changed
chkports.pyandconnchk.pynow print a big ASCII connchk title banner with a tagline (suppress with--no-banner).argparseCLIs: pass--ports, hosts/--file,--timeout,--no-colorto run fully non-interactively; omit them to get guided prompts for whatever's missing.--helpdocuments each with examples.✔ SUCCESS/✘ FAILEDlines plus aSummary: N passed M failed, and script-friendly exit codes (0all connected,1any failed,2usage error).connchk.pygains explicit--local/--remote,--host/--user/--identity, and now drives the remote checker non-interactively by passing flags to the copiedchkports.py(this also fixes remote mode, which previously had no way to answer the remote script's prompts). Remote auth via SSH key (--identity) orCONNCHK_PASSWORD.assets/.chkports.pystays self-contained (it's the file copied to remote hosts).Validation
python -m compileall -q .— clean (matches CI's compile step).chkports.pyend-to-end against a live local listener: open vs closed ports,--fileinput (with blank/#lines), invalid-port and missing-input cases (clean errors, no hang on non-tty), and the interactive prompt path. Exit codes verified (0/1/2).connchk.pylocal mode; verified remote command construction (safe shell-quoting),--local/--remoteresolution, and credential-missing handling..pyfiles (CI community-files gate).