Repository navigation
fix(cli): print "Nothing to update." when update finds nothing installed - #118
Merged
Merged
Conversation
`skillx update` in human mode exited 0 with no output on a fresh home, while `--json` returned an empty `outcomes` list. Human mode now says so. Closes #117 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P2Y29QVdCv83Eq9kL9wbDr
…source Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P2Y29QVdCv83Eq9kL9wbDr
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.
Closes #117
Summary
On a fresh home,
skillx updatein human mode exited 0 and printed nothing, while--jsonreturned{"ok":true,"data":{"outcomes":[],"lockPath":null}}. Human mode now printsNothing to update.. The JSON envelope does not change, and a named ref that is not installed still fails withnot_found.packages/cli/src/commands/install.ts: the human printer moved into the exportedprintUpdated, which adds the empty-state line.packages/cli/src/commands/install-update.test.ts: covers the empty state, and checks that with several sources the lock line prints once, after the last one.docs/cli-reference.md: documents the empty-state output.Verification
pnpm test: 120 files, 2380 passed, 2 skipped.pnpm typecheckandpnpm --filter skillx-sh buildpass.SKILLX_HOME/CLAUDE_CONFIG_DIR/HOME:skillx update --runtime claude-code --no-lockprintsNothing to update.and exits 0.--jsonit prints the unchanged envelope and exits 0.Docs impact:
docs/cli-reference.mdnow describes the CLI's empty-state output. No other user-facing contract changed.Generated by Claude Code