-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell: add 'exit' builtin command #9705
Conversation
❌ @nektro 3 files with test failures on linux-x64-baseline: |
❌ @nektro 3 files with test failures on linux-x64: |
❌🪟 @nektro, there are 12 test regressions on Windows x86_64
|
❌ @nektro 4 files with test failures on bun-darwin-aarch64:
|
❌ @nektro 6 files with test failures on bun-darwin-x64:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume the failing tests are just general flakiness
inline else => |tag| { | ||
cmd.exec.bltn.impl = @unionInit(RealImpl, @tagName(tag), .{ | ||
.bltn = &cmd.exec.bltn, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly not sure how I feel about this, it's definitely more concise than what we had previously but also makes it harder to understand what exactly is going on IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you elaborate on this a bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
personally, i like it
it also encourages all the commands have the same interface
} | ||
|
||
pub fn deinit(this: *Exit) void { | ||
_ = this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the memory owned by the parent struct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appears so checking all the other builtins
breaking out #9578 into multiple PRs in order to better pin down where my CI is going awry
edit: progress on #9716