Skip to content

Fix CLI inspect and scaffold behavior - #167

Merged
id774 merged 1 commit into
masterfrom
claude/fix-cli-contract-i985h3
Sep 5, 2026
Merged

Fix CLI inspect and scaffold behavior#167
id774 merged 1 commit into
masterfrom
claude/fix-cli-contract-i985h3

Conversation

@id774

@id774 id774 commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • inspect <url> now parses the first discovered feed instead of the last one, restoring the contract documented in README and doc/REQUIREMENTS.md.
  • scaffold now creates missing bundled siteinfo and example configuration independently of whether their parent directory (assets, config) already existed, so a partially-scaffolded user directory can be healed by re-running scaffold. Existing siteinfo and example configuration directories are left untouched.

Reason

README, doc/REQUIREMENTS.md, doc/DEPLOYMENT.md and doc/POLICY.md already document this contract, but the implementation had drifted from it: inspect selected the last discovered feed, and scaffold only copied bundled siteinfo/example configuration when it also created their parent directory, leaving partial installs unrecoverable.

Tests

  • bundle exec rspec spec/lib/automatic/cli_spec.rb — 22 examples, 0 failures
  • bundle exec rake spec — 363 examples, 0 failures
  • gem build automatic.gemspec — succeeded (automatic-26.09.gem)
  • bundle exec ruby -Ilib -e "require 'automatic'" — succeeded
  • bundle exec bin/automatic --version / --help — succeeded

Compatibility

No change to public CLI options, subcommands, or arguments. No dependency changes. VERSION remains 26.09.

Version History

Added one coherent release item to the v26.09 (Release Date: TBD) section of doc/VERSIONS covering both the inspect and scaffold corrections.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019yrav786J6wJ8aTkxhgSbY
@id774
id774 merged commit 2825862 into master Sep 5, 2026
8 checks passed
@id774
id774 deleted the claude/fix-cli-contract-i985h3 branch September 5, 2026 09:04
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.

2 participants