All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Added
- Center and right text alignment options (#16).
Changed
- Bumped minimum Elixir version to 1.13.
Removed
- Removed
Scribe.auto_inspect/1
. - Removed
Scribe.auto_inspect?/0
.
- Added
:device
option toScribe.print/2
for printing to a specific device. Defaults to:stdio
NoBorder
style added.
- Support for Elixir
v1.8
- Support for Elixir
v1.7
:compile_auto_inspect
and:auto_inspect
config options, both default tofalse
.- Added
Scribe.auto_inspect/1
for toggling auto inspect. - Added
Scribe.auto_inspect?/0
. - Removed
Scribe.enable/0
andScribe.disable/0
, replaced with above. - Removed
Scribe.enabled?/0
, replaced with above.
To work with production releases, auto-inspect functionality can now be
optionally compiled (not compiled by default). To enable auto-inspect for
your development environment, add this to your config/dev.exs
:
config :scribe,
compile_auto_inspect: true,
auto_inspect: true
To temporarily disable auto-inspect in your shell, use
Scribe.auto_inspect(false)
. Inspect will work as normal until set to
true again.
If auto-inspect is not compiled (or disabled), Scribe.print/2
and similar
functions will continue to work as normal.
- Pseudographics style added.
- Overrides Inspect protocol for
List
andMap
. These types will now automatically return in Scribe's table format. Disabled by default. withconfig :scribe, enable: false
in your Mix config. Scribe.enable
,Scribe.disable
, andScribe.enabled?
added.- Minimum Elixir version bumped to
1.5
.
- Bump pane dependency to v0.2.0.
@behaviour Scribe.Style
implemented (See/style
for example adapters)- Colorized output.
- Default styling no longer separates data rows.
- Tables no longer width-limited unless specified.