Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable renderers? #25

Open
mmkal opened this issue May 11, 2024 · 0 comments
Open

Configurable renderers? #25

mmkal opened this issue May 11, 2024 · 0 comments

Comments

@mmkal
Copy link

mmkal commented May 11, 2024

Is your feature request related to a problem?

Hi, I want to add listr2/tasuku-like support to a migration library I maintain, umzug. The default behaviour of tasuku is perfect for running it from a dev machine/via CLI. But an important use case for umzug is also calling it via API, for example in a server hosted in the cloud. For those cases right now, umzug accepts a logger as input, so you can pass in a JSON logger (or any logger) to control what is output.

I'm trying to figure out whether it would be possible to integrate tasuku without that being the only way logs can be emitted.

Describe the solution you'd like

listr2 supports custom renderers - I think that's roughly what I'm looking for.

Describe alternatives you've considered

I'm not sure - maybe I'm thinking about this in the wrong way?

Additional context

I think that running migrations using tasuku to control the output will involve tasuku being pretty deeply integrated into the umzug codebase, but maybe there's a lighter-touch way of doing things?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant