elastic / elastic/elastic-package

Use single dependency to render tables

Open
#2,604 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
72
Forks
141
Avg merge
19h 42m
Merged PRs (30d)
55

Description

There are some elastic-package subcommands that render tables in their output. For this rendering we use two different dependencies, that generate slightly different outputs.
* `tablewriter` is used in `cmd` package, we use its colorized output.
* `go-pretty` is used in test and benchmark reports, we don't use colors so far there.

For consistency we should use the same kind of tables, and use the same package for rendering them.

As part of this task we should decide what package to use.

Check also consistency of output used (stderr vs stdout): https://github.com/elastic/elastic-package/pull/2590#discussion_r2100675637

See discussion in https://github.com/elastic/elastic-package/pull/2590#discussion_r2097315047

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the linked pull request discussions, then inspect table rendering in the cmd package and in the test and benchmark reports. Compare table output and stderr versus stdout usage, choose one dependency, and verify that the affected subcommands and reports use consistent rendering.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.