Skip to content

Deprecate train command with warning before future removal#2818

Merged
michaeldwan merged 3 commits intomainfrom
deprecate-train-command
Mar 9, 2026
Merged

Deprecate train command with warning before future removal#2818
michaeldwan merged 3 commits intomainfrom
deprecate-train-command

Conversation

@markphelps
Copy link
Contributor

Summary

  • Adds a deprecation warning to the cog train command using cobra's built-in Deprecated field, so users see Command "train" is deprecated, the train command will be removed in a future version of Cog on stderr when running it
  • The command remains functional — training still works as before
  • Adds a unit test (pkg/cli/train_test.go) and an integration test (train_deprecated.txtar) verifying the warning is present

@markphelps markphelps requested a review from a team as a code owner March 9, 2026 16:04
@markphelps markphelps added this to the 0.17.0 Release milestone Mar 9, 2026
markphelps and others added 2 commits March 9, 2026 12:06
Signed-off-by: Mark Phelps <mphelps@cloudflare.com>
@michaeldwan michaeldwan enabled auto-merge (squash) March 9, 2026 16:08
@michaeldwan michaeldwan merged commit 3f62e3d into main Mar 9, 2026
32 checks passed
@michaeldwan michaeldwan deleted the deprecate-train-command branch March 9, 2026 16:17
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