Skip to content

Allow for Buffer charts to be tested in CLI mode #51

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

Open
FranjoMindek opened this issue May 13, 2025 · 1 comment · May be fixed by #53
Open

Allow for Buffer charts to be tested in CLI mode #51

FranjoMindek opened this issue May 13, 2025 · 1 comment · May be fixed by #53

Comments

@FranjoMindek
Copy link
Contributor

FranjoMindek commented May 13, 2025

Currently it's easy to test ImageCharts charts in CLI mode since they are hosted on their own server.
While we can easily send Buffer as a file attachment to Discord, we can't do the same for the CLI.

For now I see these approaches:

  1. Save the Buffer chart as a image in the os.tmpdir(), provide the file path to user in CLI
  2. Use library which allows us to display pictures in terminals (might not work on all terminals)
  3. Use library which allows us to transform pictures to ASCII alternatives
@Martinsos
Copy link
Member

Makes sense! I wouldn't do (3) because then we are not testing much :D, but (1) or (2) make sense. Probably (1) is the best solution, well depends how widely is (2) supported.

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