trogon icon indicating copy to clipboard operation
trogon copied to clipboard

How can I test a trogon sub-command within a typer app?

Open anschweitzer opened this issue 11 months ago • 1 comments

I have a typer app with a command that calls trogon, which is lovely. Recently it broke because I updated my dependencies incorrectly. I would like to be able to verify it can run without exception. Trogon runs forever until it gets user input. Is there a way to pass "ctrl+q" to trogon when trogon is invoked from a typer commands?

Thanks.

anschweitzer avatar Jan 06 '25 17:01 anschweitzer

Hey @anschweitzer thanks for the question. I think this ultimately ends up being more of a Textual question, because the thing you want to send the quit signal to is the Textual app that Trogon ultimately creates. I'm not sure I have an immediate answer for you; my understanding is that the Textual app will end up executing as a process distinct from your own application code, so I'm not sure there's a good way to do this without intercepting the spawned process.

daneah avatar Mar 06 '25 12:03 daneah