feat(cli): add `coder task pause` command by DanielleMaywood · Pull Request #22012 · coder/coder

@DanielleMaywood

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

@DanielleMaywood

@DanielleMaywood

@DanielleMaywood

SasSwart

@DanielleMaywood

- Remove punctuation from example descriptions
- Remove dead else branch for nil WorkspaceBuild (never nil on success)
- Regenerate golden file and CLI docs

@DanielleMaywood

Add a test case (OtherUserTask) that verifies an admin can pause a
task owned by another user using the "owner/name" identifier format.
Add a corresponding CLI example demonstrating this usage.

mafredri

@DanielleMaywood

@DanielleMaywood

@DanielleMaywood

mafredri