deeporiginbio / deeporigin-client

Deep Origin CLI and Python client
https://client-docs.deeporigin.io/
MIT License
9 stars 0 forks source link

feat: disabled printing context for compute cluster and hardware which the platform no longer provides #53

Closed jonrkarr closed 4 months ago

jonrkarr commented 4 months ago

deeporigin context is intended to print out information including

This PR disables printing this information because the platform no longer provides this information. DOS-3008 will add it. Until that point, we should avoid printing unsupported information.

Rather than deleting support for this information in this library, I instead refactored the library to make the printing of this information conditional. Once the platform resumes providing this information, we can simply change the default values of these conditions.

The second commit of this PR also formats a couple of source files.

The third commit of this PR refactors the generation of the string representation of context from the CLI module to __str__ methods for the classes which capture context information. This was done to make it easier to pass conditional information for testing.

Closes DOS-3009