diff --git a/docs/plans/linux-connector/00-status.md b/docs/plans/linux-connector/00-status.md index 03e4560..6cafdaf 100644 --- a/docs/plans/linux-connector/00-status.md +++ b/docs/plans/linux-connector/00-status.md @@ -13,7 +13,7 @@ - [ ] Slice 5 — fleet health & connectivity matrix (`status` command probing TCP/22, SSH banners, and latency across homelab nodes) - [ ] Slice 6 — tunnel & port forwarding helper (`tunnel` command automating local/remote port forwarding and ProxyJump bastions) - [ ] Slice 7 — packaging & distribution (.deb, .rpm, .tar.gz standalone) -- [ ] Slice 8 — documentation, man page (Section 1) & Gitea Actions CI/CD release workflow +- [ ] Slice 8 — full documentation (user, admin & developer guides), man page (Section 1), CLI -h/--help & Gitea Actions CI/CD release workflow ## Notes for a fresh session - Project: Fast SSH connection manager, interactive host launcher, and multi-node command runner for Linux fleets. @@ -22,5 +22,11 @@ - Platforms: Client runs on macOS, Fedora, Debian/Ubuntu, RHEL 8/9, Arch Linux. Targets any standard SSH daemon. - Target Python runtime: Python >= 3.6 (RHEL 8 compatibility). - Dependencies: Standard library core (uses system OpenSSH client binary for native keys, agent, and FIDO2). `paramiko` and `cryptography` permitted for programmatic parallel execution, SFTP, and key handling. +- Documentation Standard (Mandatory parity with linux-updater): + - User Guide: `docs/user-guide.md` (interactive fuzzy launcher, inventory configuration, SSH shortcuts, command execution). + - Administrator Guide: `docs/admin-guide.md` (fleet inventory structuring, automated scripting, CI/CD pipeline integration, JSON output). + - Developer Guide: `docs/developer-guide.md` (internal architecture, parser implementation, TUI state machine, test suites). + - System Manual Page: `man/linux-connector.1` (complete Section 1 man page). + - Rich CLI Help: Complete `-h` and `--help` for root and all sub-commands (`connect`, `exec`, `status`, `tunnel`) with syntax, parameter descriptions, and realistic examples. - Testing environment: Proxmox VE cluster (`alma-crash`, `arch-crash`, `debian-crash`, `fedora-crash`, `ubuntu-crash`) and Podman on macOS. - Repository: `https://gitea.wired.synology.me/soda64/linux-connector.git` on branch `main`. diff --git a/docs/plans/linux-connector/01-spec.md b/docs/plans/linux-connector/01-spec.md index 4eb51eb..3709c75 100644 --- a/docs/plans/linux-connector/01-spec.md +++ b/docs/plans/linux-connector/01-spec.md @@ -90,3 +90,16 @@ $ linux-connector tunnel pve-01 8006:localhost:8006 - **Client Environments:** macOS and Linux (Debian, Ubuntu, Fedora, RHEL, Arch). - **Security:** Strict Zero-Secrets policy. Passwords in plaintext files are forbidden. Authentication relies on SSH keys, SSH agent forwarding, or interactive prompt. - **Terminal Discipline:** Interactive session handover uses `os.execvp("ssh", ...)` so that raw terminal handling, TTY allocation, window resizing (SIGWINCH), and escape sequences remain 100% native to the operating system's OpenSSH client. + +--- + +## 6. Documentation Deliverables & CLI Help Standards (Parity with linux-updater) +To ensure complete architectural parity and usability across homelab workstations and nodes, `linux-connector` delivers four core documentation artifacts and a first-class CLI help interface: +1. **User Guide (`docs/user-guide.md`):** Practical user manual covering interactive host launching (`linux-connector`), fuzzy search keystrokes, SSH config setup, multi-node command execution (`exec`), and port tunneling. +2. **Administrator Guide (`docs/admin-guide.md`):** Fleet inventory management (`hosts.yaml`), automating cluster commands from scripts/CI, parsing `--json` output, security best practices (SSH keys, agent forwarding, sudo NOPASSWD vs `--ask-sudo-pass`). +3. **Developer Guide (`docs/developer-guide.md`):** Codebase architecture, OpenSSH lexer/parser design, TUI state machine and terminal raw mode mechanics, extending inventory loaders, and running integration test suites. +4. **System Manual Page (`man/linux-connector.1`):** Complete UNIX Section 1 manual page (`man 1 linux-connector`) documenting all options, environment variables, exit codes, and operational examples. +5. **Interactive CLI Help (`-h` / `--help`):** + - Root `linux-connector -h` outputs an intuitive summary of primary operational modes (`connect`, `exec`, `status`, `tunnel`). + - Every sub-command provides detailed help (`linux-connector connect -h`, `linux-connector exec -h`, `linux-connector status -h`, `linux-connector tunnel -h`) with argument descriptions, default flags, and realistic command examples. + diff --git a/docs/plans/linux-connector/03-program-design.md b/docs/plans/linux-connector/03-program-design.md index 7796fb0..c4e7a53 100644 --- a/docs/plans/linux-connector/03-program-design.md +++ b/docs/plans/linux-connector/03-program-design.md @@ -36,8 +36,14 @@ linux-connector/ │ ├── install.sh # Tarball installer script │ ├── deb/ │ └── rpm/ +├── docs/ +│ ├── user-guide.md # End-user operator & interactive guide +│ ├── admin-guide.md # Fleet inventory & automation admin guide +│ ├── developer-guide.md # Architecture, parser & TUI developer guide +│ └── plans/ +│ └── linux-connector/ # Software Factory planning artifacts ├── man/ -│ └── linux-connector.1 # Man page (Section 1) +│ └── linux-connector.1 # Complete Section 1 UNIX man page ├── tests/ │ ├── __init__.py │ ├── test_cli.py diff --git a/docs/plans/linux-connector/04-slices.md b/docs/plans/linux-connector/04-slices.md index f794cd7..eb2acb6 100644 --- a/docs/plans/linux-connector/04-slices.md +++ b/docs/plans/linux-connector/04-slices.md @@ -76,10 +76,14 @@ This roadmap defines the implementation order for `linux-connector` in thin, ind --- -### Slice 8 — Documentation & Gitea Actions CI/CD Workflow -- **Goal:** Production-ready release automation. +### Slice 8 — Full Documentation, Man Page, CLI Help & Gitea Actions CI/CD Workflow +- **Goal:** Production-ready release automation and complete operator, admin, and developer documentation. - **Components:** - - Man page in `man/linux-connector.1`. - - Comprehensive documentation (`README.md`, `docs/user-guide.md`). + - `docs/user-guide.md`: Comprehensive user manual for interactive fuzzy launcher, keystrokes, and multi-node execution. + - `docs/admin-guide.md`: Fleet inventory management (`hosts.yaml`), CI/CD automation, scripting, and security rules. + - `docs/developer-guide.md`: Internal architecture, OpenSSH parser design, TUI raw mode mechanics, and test suites. + - `man/linux-connector.1`: Full UNIX Section 1 man page (`man 1 linux-connector`). + - Interactive CLI Help: Complete `-h` and `--help` for root and all sub-commands (`connect`, `exec`, `status`, `tunnel`) with examples. - `.gitea/workflows/release.yml`: Gitea Actions pipeline targeting `runs-on: fedora`, running tests, building `.rpm`/`.deb`, publishing to Gitea Package Registry and Release assets. -- **Verification:** Validate workflow syntax and verify package linking API requests. +- **Verification:** Unit tests verifying `linux-connector -h` and each sub-command `--help` return exit code 0; man page syntax verified with `man -l man/linux-connector.1`. +