Skip to content

Deprecate 'watch' subcommand#113

Merged
dak2 merged 1 commit into
mainfrom
deprecate-watch-command
Apr 19, 2026
Merged

Deprecate 'watch' subcommand#113
dak2 merged 1 commit into
mainfrom
deprecate-watch-command

Conversation

@dak2
Copy link
Copy Markdown
Owner

@dak2 dak2 commented Apr 19, 2026

Motivation

The watch subcommand will be removed in a future release. Surface a deprecation warning now so users can migrate before the breaking change.

Changes

  • Mark Watch as [DEPRECATED] in --help output (core/src/cli/args.rs)
  • Print a runtime warning to stderr on invocation in both the core and ext (gem) binaries
  • Remove the "Watching for File Changes" section from README

Checked

  • cargo build --bin methodray --features cli passes
  • cargo test --lib passes
  • Verified warning appears on stderr when running methodray watch
  • Verified [DEPRECATED] label is shown in methodray --help

Generated with Claude Code

Print a runtime warning on stderr and mark the command as [DEPRECATED]
in --help so users can migrate before removal in a future release.
Also drop the "Watching for File Changes" section from README.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dak2 dak2 merged commit aeee84f into main Apr 19, 2026
4 checks passed
@dak2 dak2 deleted the deprecate-watch-command branch April 19, 2026 01:22
@dak2 dak2 mentioned this pull request May 3, 2026
2 tasks
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.

1 participant