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

Option to dump environment details to screen/file to report in issues

Open drpatelh opened this issue 2 years ago • 1 comments

If possible, it would be nice to maybe dump the environment info to screen/file so it can be uploaded to Github issues. I am not entirely sure what would be required for proper debugging. Could maybe start with the TOWER* environment variables and the version of tw as low hanging fruit.

In the future, given we can add/create/update quite a few levels of info via tw e.g. credentials, pipelines, workspaces, organizations maybe we can produce a redacted list of info that can be dumped to screen for easy access when debugging.

I assume some of this will already be used to perform the health check?

drpatelh avatar Nov 12 '21 16:11 drpatelh

There is this idea to convert the health command into info command: https://github.com/seqeralabs/tower-cli/issues/66

Maybe we can also add different verbose levels to the info command and the highest can be useful for reporting issues.

jordeu avatar Nov 12 '21 17:11 jordeu