simonw / llm-cmd

Use LLM to generate and execute commands in your shell
Apache License 2.0
109 stars 11 forks source link

Smarter handling of stdout, stderr and the exit code #2

Closed simonw closed 5 months ago

simonw commented 5 months ago

When the user's command is executed it should send stdout to stdout, stderr to stderr and whatever the exit code is should be reflected by the exit code of llm cmd itself.

simonw commented 5 months ago

Relevant code: https://github.com/simonw/llm-cmd/blob/8e4156b234ba9a647074942c0ae4e648dccc44ea/llm_cmd.py#L41-L54

simonw commented 5 months ago

This will happen here: