docs: fix global add example#1489
Closed
MikeKatsoulakis wants to merge 1 commit into
Closed
Conversation
safishamsi
pushed a commit
that referenced
this pull request
Jun 27, 2026
The README showed `global add graph.json myrepo` (positional tag) writing to `~/.graphify/global.json`. The real CLI takes the tag via `--as` (the positional was silently ignored) and the file is `~/.graphify/global-graph.json`. Corrected to `global add graph.json --as myrepo`. Ported from PR #1489 by @MikeKatsoulakis. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collaborator
|
Thanks @MikeKatsoulakis — verified against the code: the CLI takes the tag via |
safishamsi
added a commit
that referenced
this pull request
Jun 28, 2026
Dates the 0.8.51 CHANGELOG and bumps the version. Highlights: Obsidian export no longer overwrites user notes / .obsidian config in an existing vault (#1506); cross-file node-ID cluster fixes — C# resolver (#1466), Go sourceless stubs (#1500), import-stub disambiguation (#1462); Java enum/annotation type nodes (#1512) + generic parents (#1510); explain/affected source-file path lookup (#1503); claude-cli Windows GBK fix (#1505); macOS install docs (#1471) and the global-add docs fix (#1489). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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.
What
While trying the README example for adding a graph to the global graph, I noticed the documented command does not actually name the repo as shown:
The CLI expects the repo name through
--as, so this updates the example to:This also updates the comment on that line to use the actual global graph path,
~/.graphify/global-graph.json.Why
I ran into this because the README made it look like
myrepocould be passed as a positional argument, but the CLI ignores that extra positional value and falls back to its default repo tag. Using--as myrepomatches the CLI help and records the intended name.Tests
Not run. This is a README-only change.