-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Add --appendCommandLine flag for appending to command #15822
Conversation
Thanks for doing this! I'm going to mark it up for team discussion, as we want to go over the implications on our command-line API 😄 |
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.
This is exactly what I was thinking of, thanks!
(we discussed in team sync today and we're all cool with this)
I'm tempted to merge this manually. I think the ARM test CI looks a little confused:
I queued a rerun. Dunno if that'll work though. |
@DHowett any ideas why the ARM tests on this PR keep dying after the 60 minute timeout? There's nothing here that should have changed that. Are the ARM tests just that slow? |
The ARM tests complete in 5-10 minutes on all other branches, so I'm gonna go with almost certainly they are not that slow! 😄 |
Thank you so much for doing this! |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Oh, I realize now that none of us read your additional comments! Copied here:
So, fortunately @zadjii-msft can give you a hand on how to author tests for commandline things... but I'll be honest: we are very "light" on tests in that area, and we often find it difficult to run through the entire command line -> launched profile testing scenario. |
Oh derp I missed that too. Tests for this are in https://github.com/microsoft/terminal/blob/main/src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp. I'd think that something like https://github.com/microsoft/terminal/blob/a7a44901c2b514a37f0a3ec90d38d5647ae4c81f/src/cascadia/LocalTests_TerminalApp/CommandlineTest.cpp#L450C8-L450C8 looks pretty straightforward how to add the test case to it. But yea, as Dustin mentioned, I'm not sure there's a good E2E test here... |
Actually, you know what, a test like
might actually be able to test the |
@hanpuliu-charles You still thinking about trying to write tests for this? If you are that's cool, we can hold off on merging this. Or we can just merge now and add the tests in a follow up. Your call |
Hi! I think you can go ahead and merge for now! Thanks for your help! |
Added --appendCommandLine flag that when set, appends the command to the preset command in the profile instead of replacing it.
Previously, there was no good way to launch wt while running a command appended to the set command in the profile. Some uses include profiles that are set to login or start an application.
Additional comments: Looking for a review, and expecting additional changes that needs to be done. For example, I am not really sure on how to include the the option's information in the CallForHelp() screen. Also, would be great if someone could guide me on including tests for this new feature. Thanks!
Closes #5528