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

How to implement a custom reporter and set it? #15

Open
pusewicz opened this issue Oct 30, 2024 · 1 comment
Open

How to implement a custom reporter and set it? #15

pusewicz opened this issue Oct 30, 2024 · 1 comment

Comments

@pusewicz
Copy link

There is an option to set the custom reporter, but currently I don't see a simple way to implement a reporter and have it required. Having it defined in the helper does... not help!

bundle exec tldr --reporter TLDR::Reporters::Mini
.gem/ruby/3.3.0/gems/tldr-0.10.0/lib/tldr/argv_parser.rb:62:in `block (2 levels) in parse': uninitialized constant TLDR::Reporters::Mini (NameError)

          options[:reporter] = Kernel.const_get(reporter)
@searls
Copy link
Collaborator

searls commented Oct 30, 2024

I don't think any have been created, but in that example you'd probably need to run the tldr CLI with ruby such that it loaded that class before running TLDR's code

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

No branches or pull requests

2 participants