Skip to content

Commit

Permalink
[fmtutil/table] Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jan 19, 2024
1 parent a5fa0d3 commit cb6f085
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Changelog

### 12.96.0

* `[fmtutil/table]` Added global flag `FullScreen` for full screen table mode
* `[fmtutil/table]` Full-screen table mode enabled by default

### 12.95.0

* `[fmtutil/table]` Added table border symbol customization
Expand Down
2 changes: 1 addition & 1 deletion ek.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
// ////////////////////////////////////////////////////////////////////////////////// //

// VERSION is current ek package version
const VERSION = "12.95.0"
const VERSION = "12.96.0"

// ////////////////////////////////////////////////////////////////////////////////// //

Expand Down
6 changes: 5 additions & 1 deletion fmtutil/table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Table struct {
// HideBottomBorder is a flag for disabling bottom border rendering
HideBottomBorder bool

// FullScreen is a flag for fullscreen table
// FullScreen is a flag for full-screen table
FullScreen bool

// Processor is function used for processing and formatting input data
Expand Down Expand Up @@ -116,12 +116,16 @@ var SeparatorColorTag = "{s}"
// ColumnSeparatorSymbol is default column separator symbol
var ColumnSeparatorSymbol = "|"

// FullScreen is a flag for full-screen table by default
var FullScreen = true

// ////////////////////////////////////////////////////////////////////////////////// //

// NewTable creates new table struct
func NewTable(headers ...string) *Table {
return &Table{
HeaderCapitalize: HeaderCapitalize,
FullScreen: FullScreen,
Headers: headers,
Processor: convertSlice,
}
Expand Down

0 comments on commit cb6f085

Please sign in to comment.