feat(cli): add `coder task pause` command by DanielleMaywood · Pull Request #22012 · coder/coder
Add a new CLI command to pause a running task. The command accepts a task identifier (UUID, name, or owner/name format) and triggers a workspace build transition to stop the task. Features: - Interactive confirmation prompt with --yes flag to bypass - Build progress streaming when a workspace build is returned - Supports task resolution by UUID, name, or owner/name Includes unit tests with mock HTTP server covering happy paths, error handling, prompt confirmation/decline, and an integration test in the full task lifecycle sequence. Closes coder/internal#1263
- Remove punctuation from example descriptions - Remove dead else branch for nil WorkspaceBuild (never nil on success) - Regenerate golden file and CLI docs
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