vercel icon indicating copy to clipboard operation
vercel copied to clipboard

[cli] refactor Output usage

Open EndangeredMassa opened this issue 4 months ago • 2 comments

On the path towards making the CLI entrypoint more testable, this PR refactors usage of Output to be less interconnected to the system. It is now wrapped by a singleton that can be modified (if necessary) as the program flows.

This allows other contexts to use the same singleton after the initial CLI logic parses the args and updates the values on the singleton.


Supports: https://linear.app/vercel/issue/ZERO-2713/extract-vercel-cli-entrypoint-into-testable-function

EndangeredMassa avatar Oct 17 '24 17:10 EndangeredMassa