Skip to content

feat: add --watch flag to deploy update#22

Open
xaviedoanhduy wants to merge 1 commit intomainfrom
feat/update-watch-flag
Open

feat: add --watch flag to deploy update#22
xaviedoanhduy wants to merge 1 commit intomainfrom
feat/update-watch-flag

Conversation

@xaviedoanhduy
Copy link
Copy Markdown
Member

Summary

  • Add --watch flag to deploy update: after a successful deployment, streams service logs with journalctl --user -u <instance> -f
  • Add Executor.stream() method for long-lived commands that must pipe output directly to the terminal (no output capture)
  • Ctrl+C stops the log tail cleanly without error

Usage

deploy update service-myapp-production --watch

Test plan

  • 3 new unit tests covering: stream called with correct command, not called without --watch, KeyboardInterrupt handled gracefully
  • All 25 tests pass
  • deploy update --help shows --watch option
  • Manual test against a real server

Closes #20

🤖 Generated with Claude Code

After a successful update, stream service logs via journalctl when
--watch is passed. Ctrl+C stops the log tail cleanly.

- executor: add stream() method for long-lived commands that pipe
  output directly to the terminal without capturing
- update: add --watch flag; calls journalctl --user -u <instance> -f
- tests: verify stream() is called with the right command, not called
  without --watch, and KeyboardInterrupt is handled gracefully

Closes #20

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

new parameter on command update: --watch

1 participant