Skip to content

cli: Add support for --stop-signal#1462

Merged
jglogan merged 1 commit into
apple:mainfrom
dcantah:stop-signal
May 22, 2026
Merged

cli: Add support for --stop-signal#1462
jglogan merged 1 commit into
apple:mainfrom
dcantah:stop-signal

Conversation

@dcantah
Copy link
Copy Markdown
Member

@dcantah dcantah commented Apr 28, 2026

Closes #1581.

This adds stop signal support to the cli. The priority is:

  1. If an explicit stop signal is passed on the cli use this.
  2. If not, check if there is a stop signal in the image config.
  3. Finally, use the default (TERM).

@github-actions github-actions Bot added the cli label Apr 28, 2026
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be updated now as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer them to be strings as well, but I'd rather do in a follow-up.

@jglogan jglogan self-requested a review May 21, 2026 18:35
@jglogan jglogan added this to the 2026-05 milestone May 21, 2026
@jglogan jglogan added the next Must-have items for current and next milestone label May 21, 2026
This adds stop signal support to the cli. The priority is:

1. If an explicit stop signal is passed on the cli use this.
2. If not, check if there is a stop signal in the image config.
3. Finally, use the default (TERM).
@github-actions
Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 33.13%
Integration 19.68%
Combined 52.25%

)

public init(timeoutInSeconds: Int32, signal: Int32) {
public init(timeoutInSeconds: Int32, signal: String?) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do validation in this type so that it's correct on construction?

Does this type really need to be mutable (I do see it makes resolvedOptions slightly easier below)?

@jglogan jglogan merged commit de780c1 into apple:main May 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli next Must-have items for current and next milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: cli: Add support for --stop-signal

3 participants