Conversation
|
@buchen LGTM! Codex claims there is no straightforward way to detect CLI vs GUI invocation, nor to get rid of the SPI Fly INFO logging. It only has a good solution for the incubator modules line...
|
|
I would say with the "garbage" on the output stream, the CLI is of limited use.
We could try two ways:
That seems to work.
As the CLI is not the primary use case for PP, I think it is okay to have a couple additional parameters on the command line. I wouldn't want to spend time there now. |
I think it's fine as a first step. The noisy output is a little ugly, but it's still totally usable. And above all: the junk is getting printed to stderr, not stdout. So it's easy to control what you get, and a basic pipe or redirect will already give you only the data, not the junk. And if an AI model is "reading" the output, they are very capable of ignoring noise and finding what they're looking for. For most users, they will never know this functionality is there, so it doesn't need to be polished IMO. It's usable for those who want it. If you want, you could also add a warning that it's developmental and the syntax might change.
Fair enough. For me, this is viable as it is. Only small thing I might consider is setting exit code > 0, at least for common error cases. Because it's part of the core CLI contract and hopefully just a couple of lines. E.g. input file not found exit(1). Bad syntax exit(2). This doesn't yet do everything I want, as I'd want derived data as well (trades, metrics), but for me it's a sensible MVP. |
For experimenting. I haven't looked at the code in detail. It is using the existing JSON and CSV formats.
Not sure if one can reduce the command line (splash, application). There are also log entries I cannot suppress (or do not know how to suppress yet).