Skip to content

Tasks: CLI resume command #1264

Closed
coder/coder
#22066

Description

@mafredri

Repo: coder/coder

Scope: Add coder tasks resume command.

Changes:

  • Add resume subcommand to task command group in cli/task.go
  • Call resume endpoint, wait for build completion by default
  • Support --no-wait flag (consistent with coder start)
  • Show build progress via cliui.WorkspaceBuild()
  • Final message: "The {task} task has been resumed."
  • No-wait message: "The {task} task is resuming in no-wait mode. Task is initializing in the background."

Files:

  • cli/task.go
  • cli/task_test.go

Acceptance criteria:

  • coder tasks resume my-task resumes the task
  • Build progress displayed during resume
  • --no-wait returns immediately with appropriate message
  • Success message on completion
  • Error handling for invalid states (not paused, etc.)

Dependencies:

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions