28 KiB
Unreleased
Code Refactoring
- fix linting
- regenerate snapshots
v0.12.34 - 2022-01-16
Bug Fixes
- progressbar: refresh progressbars on every PTerm print (#302)
Test
- removed
AreaPrintertest output - table: changed mock reader from
os.StdintooutBuf
v0.12.33 - 2021-10-24
Features
- add
PrintOnErrorffor everyTextPrinter(#279) - coverage: add unit test
- progressbar: made updating the progressbar title easier. (#267)
- table: increase test coverage
- table: revamp to follow practice
- table: add support for right data alignment
Bug Fixes
- idea: revert unwanted config changes
- linter: do linter recommendation to delete fallthrough
v0.12.32 - 2021-10-15
Features
- added
AreaPrinter.Clear()
Bug Fixes
- progressbar method name
- header: fixed length calculation for Chinese strings
Code Refactoring
- change bitSize size
v0.12.31 - 2021-09-21
Features
- prefix: added
LineNumberOffsettoPrefixPrinter
v0.12.30 - 2021-08-16
Bug Fixes
- style: resetting to previous color also resets attributes
Code Refactoring
- adapt new testza function name
v0.12.29 - 2021-07-19
Features
- putils: add
PrintAverageExecutionTime
Test
- fix rgb error test
- fix internal test import cycle
- move tests into own package
Code Refactoring
- replace
testifywithtestza
v0.12.28 - 2021-07-17
Features
- spinner: add option to show a timer
Bug Fixes
- bar chart: fix panic when rendering empty horizontal bar chart
Test
- spinner: try to fix RawOutput text
- spinner: add raw output test
Code Refactoring
- spinner: better raw output logic
- spinner: refactor
v0.12.27 - 2021-07-05
Bug Fixes
- style: fix multiline style coloring
Test
- style: fix multiline style coloring
- style: fix multiline style coloring
v0.12.26 - 2021-07-01
Bug Fixes
- spinner: Override previous text in
UpdateText
v0.12.25 - 2021-07-01
Features
- table: add
Boxedoption
Test
- add tests for boxed
TablePrinter
v0.12.24 - 2021-06-13
Features
- boxprinter: replace line breaks in title with space
- boxprinter: add title center position to
BoxPrinter - boxprinter: add title & title position to
BoxPrinter - boxprinter: add title & title position to
BoxPrinter - putils: add
TableDataFromSeparatedValues - putils: add
TableDataFromTSV - putils: add
TableDataFromCSV - putils: add function to convert TSV to
TableData - putils: add function to convert CSV to
TableData
Test
- add test for putils
TableDatageneration - boxprinter: add tests for title center position to
BoxPrinter - boxprinter: add tests for title & title position
Code Refactoring
- boxprinter: prefix title positions with
Title - putils: add
rowSeparatortoTableFromSeparatedValues
v0.12.23 - 2021-06-07
Features
- Add util functions to create tables from slices of structs (#217)
Bug Fixes
- headerprinter: don't panic if content width > terminal width
Test
- prefix:
pterm.Errordefault no line number shown
Code Refactoring
- prefix:
pterm.Errordefault no line number shown
v0.12.22 - 2021-05-30
Features
- make spinner update faster
Performance Improvements
- improve performance of
SpinnerPrinter
v0.12.21 - 2021-05-30
Features
- print lines above active spinners
- putils: add
DownloadFileWithProgressbar
Test
- clear active spinners after tests complete
Code Refactoring
- putils: change internal variable name
v0.12.20 - 2021-05-29
Features
- force color output by default
v0.12.19 - 2021-05-29
Features
- add
PrintOnErrorfor all printers and interface - putils: add
putilspackage (#206)
Bug Fixes
- header: fix multiline header
Test
- add tests for all printers for
PrintOnError
Code Refactoring
- make
PrintOnErrorreturn*TextPrinter - area: better height calculation
v0.12.18 - 2021-05-22
Features
- add
AreaPrinter - area: add
Centeroption - area: add
Fullscreenoption - area: add
GetContentfunction - area: add
AreaPrinter
Test
- area: fix tests for
AreaPrinter - area: add
AreaPrintertests
Code Refactoring
- fix linting errors
v0.12.17 - 2021-05-14
Bug Fixes
- fix
pterm.Fatal.Printflnnot panicking - prefix: fix
pterm.Fatal.Printflnnot panicking and had output in debug mode
Test
- prefix: add tests for
SprintflnandPrintflnfunction when in debug mode
v0.12.16 - 2021-05-13
Code Refactoring
- prefix: make
PrintOnErroraccept multiple inputs
v0.12.15 - 2021-05-13
Features
- add raw output mode for
BarChart - add disable styling boolean option
- bigtext: add raw output mode
- centerprinter: add raw output mode
- headerprinter: add raw output mode
- panelprinter: add raw output mode
- paragraph: add raw output mode
- prefix: add
PrintIfError - prefix: add raw output mode
- progressbar: add raw output mode
- spinner: add raw output mode
Bug Fixes
- prefix: fix
PrintOnError
Test
- add tests with
RawOutputenabled - add interface tests for
ColorandRGB - added tests for
DisableStylingandEnableStyling
Code Refactoring
- correct behaviour of Enable-/DisableStyling
- fix variable names
v0.12.14 - 2021-05-09
Features
- basic-text: add
SprintflnandPrintflnfunction - boxprinter: add
SprintflnandPrintflnfunction - centerprinter: add
SprintflnandPrintflnfunction - color: add
SprintflnandPrintflnfunction - header: add
SprintflnandPrintflnfunction - paragraph: add
SprintflnandPrintflnfunction - prefix: add
SprintflnandPrintflnfunction - print: add
SprintflnandPrintflnfunction - printer-interface: add
SprintflnandPrintflnto the interface - rgb: add
SprintflnandPrintflnfunction - section: add
SprintflnandPrintflnfunction
Bug Fixes
- header: fix inline color in
Header
Test
- add tests for
SprintflnandPrintflnfunction
Code Refactoring
- refactor
SprintflnandPrintflnfunc. for better performance
Reverts
- ci: change color scheme for rendered examples
v0.12.13 - 2021-04-10
Bug Fixes
- bigtext: fix height of some characters #180
- color: make color implement
TextPrinter
Test
- add interface tests
Code Refactoring
- examples: center the intro of
demo - examples: add note to box printer
v0.12.12 - 2021-03-01
Features
- prefixprinter: Add option to show line number of caller
Code Refactoring
- examples: Update
PrefixPrinterexample
v0.12.11 - 2021-02-26
Code Refactoring
- refactor print logic of
BoxPrinter - refactor print logic of
CenterPrinter
v0.12.10 - 2021-02-26
Bug Fixes
- correct
pterm.Println()behaviour to fit tofmt.Println()
v0.12.9 - 2021-02-23
Bug Fixes
- correct
pterm.Println()behaviour to fit tofmt.Println() - change terminal package import path to updated version
v0.12.8 - 2020-12-11
Features
- boxprinter: add
WithHorizontalStringtoBoxPrinter - boxprinter: add
BoxPrinter - panel: add optional border for
Panel - panelprinter: add theme support to
PanelPrinter - theme: add
BoxStyleandBoxTextStyle - theme: add optional theme for border in
Panel
Bug Fixes
- revert change horizontal string change
Test
- boxprinter: add test
- boxprinter: test multiple lines in one box
- boxprinter: add tests for
BoxPrinter - panelprinter: add tests for adding box printer
- panelprinter: add tests for optional border for
Panel - theme: add tests for
BoxStyleandBoxTextStyle
Code Refactoring
- remove analytics
- boxprinter: change from
RenderablePrintertoTextPrinter - boxprinter: return theme when style is nil
- boxprinter: change
DefaultBoxtop and bottom padding to 0 - boxprinter: fix spacing between boxes and in boxes
- boxprinter: refactor code
- panelprinter: optional border for
Panel - panelprinter: add
BoxPrinterto surround panels with a fully custom box
v0.12.7 - 2020-11-24
Features
- add values to chart
- add horizontal
BarChartPrinter - add
BarChartPrinter - add
BarChartPrinter - add
BarChartPrinter - theme: add theme support to
BarChart
Bug Fixes
- center bars over colored labels in
BarChart
Test
- add tests to
BarChartPrinter
v0.12.6 - 2020-11-17
Bug Fixes
- disabling output works as expected now (#149)
v0.12.5 - 2020-11-17
Bug Fixes
- fix
PrefixPrinterwith multiple trailing newline endings.
v0.12.4 - 2020-11-17
Bug Fixes
- fix
PrintfofPrefixPrinter
v0.12.3 - 2020-11-12
Test
- reduce tests
- different test logic for rgb printing
- add better test names for
RGBtests
v0.12.2 - 2020-11-05
Features
- color each line separately when using multi line input
Bug Fixes
- fix internal
GetStringMaxWidthmax width
Test
- basictext: proxy print functions to DevNull
- progressbar: proxy print functions to DevNull
Code Refactoring
- use
pterm.Sprintto print
v0.12.1 - 2020-11-04
Bug Fixes
- panel: Fix output when input is colored
Performance Improvements
- header: calculate margin faster
v0.12.0 - 2020-11-04
Features
- panel: add an option to make a padding beneath
panel - panel: add an option to make columns the same length
Bug Fixes
- panel: add invalid check for
paddinginpanel
Test
- bulletlist:
BulletListItemremoveRenderandSrender - bulletlist: change
BulletListtoBulletListPrinter - panel: add invalid check for
paddinginpanel - panel: add test for
WithBottomPadding - panel: add test for
WithSameColumnWidth& multiplepanel - panel: add test for
WithSameColumnWidth - progressbar: change
ProgressbartoProgressbarPrinter - progressbar: change directory name
progressbar_testtoprogressbar_printer_test - spinner: change directory name
spinner_testtospinner_printer_test - spinner: change
SpinnertoSpinnerPrinter - table: change
TabletoTablePrinter - tree: change
TreetoTreePrinter
Code Refactoring
- make all printer names end with
Printer(#134) - bulletlist: remove
DefaultBulletListItem - bulletlist:
BulletListItemremoveRenderandSrender - bulletlist:
BulletListItemis no renderable anymore - bulletlist: change
BulletListtoBulletListPrinter - progressbar: change
ActiveProgressbarstoActiveProgressbarPrinters - progressbar: change directory name
progressbartoprogressbar_printer - progressbar: change
ProgressbartoProgressbarPrinter - spinner: change
SpinnertoSpinnerPrinter - spinner: change directory name
spinnertospinner_printer - table: change
TabletoTablePrinter - tree: change
TreetoTreePrinter
BREAKING CHANGE
Removed DefaultBulletListItem.
Change names of printers which didn't end with Printer. Every printer name ends with Printer now to fit into the new naming convention.
change ActiveProgressbars to ActiveProgressbarPrinters
BulletListItem is no renderable anymore, removed Render and Srender
BulletListItem is no renderable anymore, removed Render and Srender
BulletListItem is no renderable anymore
change Tree to TreePrinter to unify the naming scheme
change Tree to TreePrinter to unify the naming scheme
change Table to TablePrinter to unify the naming scheme
change Table to TablePrinter to unify the naming scheme
change Spinner to SpinnerPrinter to unify the naming scheme
change Spinner to SpinnerPrinter to unify the naming scheme
change Progressbar to ProgressbarPrinter to unify the naming scheme
change Progressbar to ProgressbarPrinter to unify the naming scheme
change BulletList to BulletListPrinter to unify the naming scheme
change BulletList to BulletListPrinter to unify the naming scheme
v0.11.0 - 2020-11-03
Features
- add
PanelPrinter
Bug Fixes
- centerprinter: make centerprinter func return pointer
BREAKING CHANGE
make centerprinter func WithCenterEachLineSeparately return a pointer of centerprinter
v0.10.1 - 2020-11-02
Features
- add
CenterPrinter
v0.10.0 - 2020-11-01
Features
- make printers return errors
- add
DisableOutput()andEnableOutput()(#108)
Code Refactoring
- ignore errors where no errors can occur
- theme: change
ListTextStyletoBulletListTextStyle(#104) - theme: change
ProgressbarBarStyletoFgCyan(#106) - theme: change white to default color in
Theme(#103)
BREAKING CHANGE
Interface of RenderablePrinter and LivePrinter changed.
The global variable DisableOutput was renamed to Output.
v0.9.3 - 2020-10-31
Features
- add a levelList converter for TreeListPrinter
- add
TreeListPrinteras a renderable printer - add
TreeListPrinteras a renderable printer - theme: add theme support for
Tree
Test
- tree: add
Treetests
Code Refactoring
- clean up
Tree - theme: change
TreeTextStyletoFgDefault - tree: add Indent to control the spacing between levels and changed docs(examples)
- tree: add more spacing between levels
- tree: refactor
Treecode and write tests forTree - tree: refactor
Treecode - tree: refactor
Treecode - tree: refactor
Treecode - tree: refactor
Treecode and write tests forTree
v0.9.2 - 2020-10-29
Features
- add option to disable and enable colors
v0.9.1 - 2020-10-27
Code Refactoring
- make the prefix of
Infosmaller again
v0.9.0 - 2020-10-27
Features
- add
DebugPrefixPrinter - add support for enabling and disabling debug messages
Bug Fixes
- progressbar disappears when done and something is printed after
Test
- add debugger tests to
PrefixPrinter - add progressbar tests
Code Refactoring
- remove
UpdateDelayfromProgressbar - change
NewListtoNewBulletList - change
NewListtoNewBulletList - deprecate
UpdateDelayinProgressbar
BREAKING CHANGE
Removed UpdateDelay from Progressbar. It's no longer used. The Progressbar automatically updates on every change to the current value.
Changed NewList to NewBulletList.
v0.8.1 - 2020-10-26
Features
- add fade from one RGB over several RGBs to another RGB
Code Refactoring
- refactor doc
- refactor code
v0.8.0 - 2020-10-24
Features
Test
- test that
%swon't fail to print
Code Refactoring
- make
BigTextPrinterrelease ready - change
LineCharactertoBarCharacter(#70)
BREAKING CHANGE
Changed LineCharacter to BarCharacter.
v0.7.0 - 2020-10-20
Features
- progressbar: add RemoveWhenDone
Bug Fixes
- make theme accept pointer styles
- make Spinner accept pointer Style
- make WithMessageStyle accept Style pointer
- add nil check to SectionPrinter Style
- section printer Style to pointer
Test
- add tests color and style
- add tests to root print functions
- add tests to progressbar
- add tests to terminal
- add tests to theme
- fix internal percentage test
- add tests to Spinner
- add tests for TablePrinter
- special tests for special statements
- complete PrefixPrinter tests
- add PrefixPrinter tests
- rename HeaderPrinter tests
- complete HeaderPrinter tests
- add ParagraphPrinter tests
- add HeaderPrinter tests
- make unit test system check different types
- add SectionPrinter tests
- implement test utils
- add rgb tests
Code Refactoring
- use log output
- remove obsolete if
- fit progressbar to new percentage calculation method
- make fatal panic
- rename parameters
- don't show empty line when removing a progressbar
v0.6.1 - 2020-10-20
Bug Fixes
- fix RGB methods
v0.6.0 - 2020-10-19
Features
- add BasicTextPrinter
- add theme support to section and table printer
- add theme support to spinner
- add theme support to headers
- add template support for progressbars
- add default theme
Test
- benchmark: fix spinner benchmark
Code Refactoring
- make printers accept pointers to styles
- remove emojis to comply with cross-platform policy
- change LivePrinter interface to pointer output
- change TextPrinter interface to pointer output
BREAKING CHANGE
All printers only accept pointers as any Style attribute.
LivePrinter now requires to return a pointer.
TextPrinter now requires to return a pointer.
v0.5.1 - 2020-10-14
Features
- add ability to disable output (#44)
- add
SrendertoRenderPrinterinterface - add csv table support (#42)
- add HEX to RGB converter in
RGB(#41) - add theme to generated animations
- add color fade example (#38)
- implement
TextPrinterintoRGB - implement color fade to
Progressbar(#37) - add color fade function and
RBG(#34) - change
Sectionstyle
Code Refactoring
- declare function name as
WithCSVReader
v0.5.0 - 2020-10-08
Features
- implement
LivePrinterinSpinner - add
BottomPaddingtoSectionPrinter - add
RenderPrinterinterface - implement
LivePrinterinProgressbar - add
LivePrinterinterface - add
TablePrinter(#27) - add
ParagraphPrinter(#24)
Test
- add
PrintequalsSprinttests forGenericPrinter - add
Spinnerbenchmarks
Code Refactoring
- rename spinner_printer.go to spinner.go
- rename
GenericPrintertoTextPrinter
BREAKING CHANGE
The GenericPrinter is now called TextPrinter.
v0.4.1 - 2020-10-07
v0.4.0 - 2020-10-07
Features
- add
AddtoStyle - add options shorthands to
SectionPrinter
Test
- ignore writer close errors in stdout capture
Code Refactoring
- use
Styleinstead of colors - refactor function parameters to fit expectation
- rename
RemoveColorstoRemoveColorFromString
BREAKING CHANGE
use Style instead of colors
Refactor function parameters to fit expectation.
Affects: WithStyle(colors -> style), WithScope(string, colors -> scope)
rename RemoveColors to RemoveColorFromString
v0.3.2 - 2020-10-06
Features
- add
SectionPrinter
Bug Fixes
- fix
Sprintffunction ofHeaderPrinter
Test
- add tests for
HeaderPrinterandSectionPrinter
v0.3.1 - 2020-10-06
Features
- add
BarFillertoProgressbar
Test
- fix import cycle
- change to inbuilt
SetDefaultOutputoption - add more benchmarks
- add benchmarks
- add tests to
GenericPrinterand default print methods
Code Refactoring
- set default
BarFillerto space - move tests directly into
ptermmodule
v0.3.0 - 2020-10-05
Bug Fixes
- fix
WithXYZ(b ...bool)to detect booleans correctly
Code Refactoring
- remove
Versionconstant - change
WithXXX(b bool)toWithXXX(b ...bool) - change
SetXXXtoWithXXX - change
HeadertoDefaultHeader
BREAKING CHANGE
remove Version constant
rename SetXXX to WithXXX
rename Header to DefaultHeader
v0.2.4 - 2020-10-04
Bug Fixes
Printfworks again
v0.2.3 - 2020-10-04
Features
- automatically print above
Progressbar
Code Refactoring
- remove goroutine from
Progressbar
v0.2.2 - 2020-10-04
Features
- add
Fatalprinter
v0.2.1 - 2020-10-04
Features
- make progressbar configurable
- add percentage helper
- add
RemoveColors - add
Progressbar(#5) - add
Progressbar - add fatal to
PrefixPrinter(#4) - progressbar: fade percentage color according to value
Code Refactoring
- bump version to "v0.2.1"
v0.2.0 - 2020-09-30
Features
- change style of
Descriptionprinter - add color in color support
- add
RemoveWhenDonetoSpinner - add multiline support to
PrefixPrinter - add
UpdateTextto spinner
Bug Fixes
- spinners spin evenly when multiple spinners are started
Performance Improvements
- improve spinner performance
Code Refactoring
- bump version to "v0.2.0"
- change
WithXXXtoSetXXX - removed
Printlnaliases
BREAKING CHANGE
every WithXXX is renamed to SetXXX
remove GetFormattedMessage from PrefixPrinter
removed Println aliases
v0.1.0 - 2020-09-28
Features
- add spinners
- shorten printer names and add builder methods to printers
- add
Printoto override printed text - add
FullWidthtoHeaderPrinter - add terminal size detection
Code Refactoring
- bump version to "v0.1.0"
- consistent example code for
Printo - better comments for
Printo - simplify
HeaderPrinter
BREAKING CHANGE
printer names changed
removed Header and put it's content directly into HeaderPrinter
v0.0.1 - 2020-09-21
Features
- add aliases to default printers
- add header example
- integrate ci
- add
HeaderPrinter - add exported version variable
- add example
override-default-printer - change prefix text color to
LightWhite
Bug Fixes
- header should now work in CI
Code Refactoring
- bump version to "v0.0.1"
- refactor project
- add comments to functions
v0.0.0 - 2020-09-18
Features
- add changelog template
- configs
- initial commit