aquasecurity / aquasecurity/table

Ability to disable text alignment in cells

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
132
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Currently table cells are aligned to the left by default.
That makes impossible to render formatted YAML sampes in cells:

```
╭───────┬─────────────────────────────────────────────────────╮
│ repo │ result │
├───────┼─────────────────────────────────────────────────────┤
│ users │ origin/branch-name: │
│ │ authors: │
│ │ - name@domain │
│ │ - name@domain │
│ │ lastcommit: "2023-03-17T20:41:03+03:00" │
╰───────┴─────────────────────────────────────────────────────╯
```

It would be nice to be able to render formatted YAML, like this:

```
╭───────┬─────────────────────────────────────────────────────╮
│ repo │ result │
├───────┼─────────────────────────────────────────────────────┤
│ users │ origin/branch-name: │
│ │ authors: │
│ │ - name@domain │
│ │ - name@domain │
│ │ lastcommit: "2023-03-17T20:41:03+03:00" │
╰───────┴─────────────────────────────────────────────────────╯
```

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by locating the Go code that renders table cells and applies text alignment, then trace how multiline cell content is handled. Done means callers can disable alignment so formatted YAML indentation is preserved, with coverage for the shown output.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.