Skip to content

Comments

Add --tail|-t flag to container logs command#1615

Merged
martin-helmich merged 4 commits intomasterfrom
copilot/add-tail-flag-to-logs
Jan 29, 2026
Merged

Add --tail|-t flag to container logs command#1615
martin-helmich merged 4 commits intomasterfrom
copilot/add-tail-flag-to-logs

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

The container-get-service-logs API operation now supports a tail query parameter to limit log output from the end.

Changes

  • Added --tail|-t integer flag with min: 1 validation
  • Passes tail parameter to API via queryParameters using spread operator pattern
  • Updated command documentation

Usage

# Show last 100 lines
mw container logs <container-id> --tail 100

# Short form
mw container logs <container-id> -t 50
Original prompt

This section details on the original issue you should resolve

<issue_title>Add --tail|-t flag to container logs command</issue_title>
<issue_description>Is your feature request related to a problem? Please describe.

The container-get-service-logs API operation now supports a tail query parameter.

Describe the solution you'd like
The new tail feature would allow for adding a --tail|-t flag to the mw container logs command.

Describe alternatives you've considered
n/a

Additional context
n/a
</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 29, 2026 13:18
Co-authored-by: martin-helmich <2538958+martin-helmich@users.noreply.github.com>
Co-authored-by: martin-helmich <2538958+martin-helmich@users.noreply.github.com>
Co-authored-by: martin-helmich <2538958+martin-helmich@users.noreply.github.com>
Copilot AI changed the title [WIP] Add --tail|-t flag to container logs command Add --tail|-t flag to container logs command Jan 29, 2026
Copilot AI requested a review from martin-helmich January 29, 2026 13:26
@martin-helmich martin-helmich marked this pull request as ready for review January 29, 2026 13:28
@martin-helmich martin-helmich merged commit b39b0ca into master Jan 29, 2026
12 checks passed
@martin-helmich martin-helmich deleted the copilot/add-tail-flag-to-logs branch January 29, 2026 13:45
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.

Add --tail|-t flag to container logs command

2 participants