Skip to content

fix(cli): print "Nothing to update." when update finds nothing installed - #118

Merged
mrgoonie merged 2 commits into
mainfrom
claude/modest-wozniak-opbk0y
Oct 20, 2026
Merged

mrgoonie merged 2 commits into
mainfrom
claude/modest-wozniak-opbk0y

Conversation

@mrgoonie

Copy link
Copy Markdown
Contributor

Closes #117

Summary

On a fresh home, skillx update in human mode exited 0 and printed nothing, while --json returned {"ok":true,"data":{"outcomes":[],"lockPath":null}}. Human mode now prints Nothing to update.. The JSON envelope does not change, and a named ref that is not installed still fails with not_found.

  • packages/cli/src/commands/install.ts: the human printer moved into the exported printUpdated, 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 typecheck and pnpm --filter skillx-sh build pass.
  • Smoke test against a temporary SKILLX_HOME/CLAUDE_CONFIG_DIR/HOME:
    • skillx update --runtime claude-code --no-lock prints Nothing to update. and exits 0.
    • With --json it prints the unchanged envelope and exits 0.
  • An isolated code-review subagent found no blocking issues. Its two low-severity test notes are fixed in bfa9dbe.

Docs impact: docs/cli-reference.md now describes the CLI's empty-state output. No other user-facing contract changed.


Generated by Claude Code

`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
@mrgoonie
mrgoonie merged commit bb57346 into main Oct 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(cli): skillx update prints nothing in human mode when nothing is installed

2 participants