autify-cli icon indicating copy to clipboard operation
autify-cli copied to clipboard

Place machine-readable output as a file

Open riywo opened this issue 3 years ago • 1 comments

High level commands such as web test run use stdout for informing to the human user. Therefore, it is not easy to pass the re-usable data to other process via pipe.

We could use stderr for logging and stdout for machine-readable information but such convention will break easily. Also, machine-readable information is not needed for human.

Thus, we should put such data on data directory like ~/.data/autify/output/web-test-run-<timestamp>-<pid>.json then print the location as a log. The other process like CI/CD integration can parse the file location from log easily and get the output in json format.

riywo avatar Aug 30 '22 08:08 riywo

Or, providing a new option like --output-file=<file> might be better.

riywo avatar Oct 25 '22 22:10 riywo