vercel
vercel copied to clipboard
[cli] refactor Output usage
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