From ea418c01262c24cd421f74da0e7028c82eb3b76b Mon Sep 17 00:00:00 2001 From: PhmTuns Date: Wed, 22 Apr 2026 13:48:44 +0700 Subject: [PATCH] docs: fix `group add` and `group remove` usage in READMEs (#1020) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The top-level and CLI READMEs advertised `gitnexus group add ` (two args) and `gitnexus group remove `, but the CLI (`gitnexus/src/cli/group.ts`) actually requires three args for `add` (` `) and uses `` — not a repo path — for `remove`. Reusing the same second argument across two `group add` invocations silently overwrote the previous mapping because the hierarchy path is the key in `group.yaml`'s `repos` map. Update both READMEs to match the real CLI contract. Node_modules not installed locally for this docs-only change, so pre-commit (prettier + typecheck) was skipped. Made-with: Cursor Co-authored-by: TuanPM1 --- README.md | 10 +++++----- gitnexus/README.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9e20c274c..5260e8388 100644 --- a/README.md +++ b/README.md @@ -208,11 +208,11 @@ gitnexus wiki --model # Wiki with custom LLM model (default: gpt-4o-m gitnexus wiki --base-url # Wiki with custom LLM API base URL # Repository groups (multi-repo / monorepo service tracking) -gitnexus group create # Create a repository group -gitnexus group add # Add a repo to a group -gitnexus group remove # Remove a repo from a group -gitnexus group list [name] # List groups, or show one group's config -gitnexus group sync # Extract contracts and match across repos/services +gitnexus group create # Create a repository group +gitnexus group add # Add a repo to a group. is a hierarchy path (e.g. hr/hiring/backend); is the repo's name from the registry (see `gitnexus list`) +gitnexus group remove # Remove a repo from a group by its hierarchy path +gitnexus group list [name] # List groups, or show one group's config +gitnexus group sync # Extract contracts and match across repos/services gitnexus group contracts # Inspect extracted contracts and cross-links gitnexus group query # Search execution flows across all repos in a group gitnexus group status # Check staleness of repos in a group diff --git a/gitnexus/README.md b/gitnexus/README.md index ed27bf728..26f861f7e 100644 --- a/gitnexus/README.md +++ b/gitnexus/README.md @@ -166,11 +166,11 @@ gitnexus wiki [path] # Generate LLM-powered docs from knowledge grap gitnexus wiki --model # Wiki with custom LLM model (default: gpt-4o-mini) # Repository groups (multi-repo / monorepo service tracking) -gitnexus group create # Create a repository group -gitnexus group add # Add a repo to a group -gitnexus group remove # Remove a repo from a group -gitnexus group list [name] # List groups, or show one group's config -gitnexus group sync # Extract contracts and match across repos/services +gitnexus group create # Create a repository group +gitnexus group add # Add a repo to a group. is a hierarchy path (e.g. hr/hiring/backend); is the repo's name from the registry (see `gitnexus list`) +gitnexus group remove # Remove a repo from a group by its hierarchy path +gitnexus group list [name] # List groups, or show one group's config +gitnexus group sync # Extract contracts and match across repos/services gitnexus group contracts # Inspect extracted contracts and cross-links gitnexus group query # Search execution flows across all repos in a group gitnexus group status # Check staleness of repos in a group