momentohq / momento-cli

Official CLI for Momento Serverless Cache
Apache License 2.0
48 stars 10 forks source link

feat: stream resources to files #314

Closed bruuuuuuuce closed 6 months ago

bruuuuuuuce commented 6 months ago

This pr updates the cloud linter command to be able to stream resources to a file, rather than keep everything in memory, before writing to a file

This main difference in this pr is that the entry point just calls process_resource_<resource_name>, and then the resource is in charge of getting all metadata/metrics, and then streaming the results to a file. Previously, the process_resource function would return the resources for further processing