Releases: Megaf/libsay
Releases · Megaf/libsay
Version 1.3.1
What's Changed
It was actually a bug, a logic error...
Glad I caught it.
Full Changelog: 1.3-202209.28.193000...1.3-202209.30.003700
Version 1.3
Version 1.3
What's Changed:
say command:
- Added
--bg-colour "colour"/-bg-c "colour"
;--bg-colour="colour"/-bg-c="colour"
to change text background colour. - Added support for environment variable
$bg_colour
to set the text background colour. - Added support for environment variable
$minimal_size
to set the minimal line length/box width. - Added several "short help" commands to list available options and print examples.
- say list_colours
- say list_colours_bg
- say list_weights
- say list_aligns
- say list_border_styles
- say list_draw_elements
- Indentation is now uniform to 2 spaces on all libsay.
- Other minor code changes.
COMMANDS.md
- Added a lot more commands, variables and examples. Still doesn't contain all libsay's capabilities, but we are nearly there!
Known Issues
- Doesn't work with Termux #7
Full Changelog: 1.2-202209.27.153000...1.3-202209.28.193000
Version 1.2
What's Changed
libsay
- Version bump to 1.2-202209.27.153000
- Spelling corrections.
set_colour()
- If no argument is given, it will return line with all the colours it understands.
- Added some code comments.
say()
- If nothing is coming from stdin and there's nothing as command line arg or string, then don't do anything and exit.
- Command args validation overhauled. Now it no longer matters the argument position.
- Colour and Alignment can be given with either --arg=parameter or --arg parameter. Same for -a=paramenter -a parameter.
- After processing command line arguments, if there's nothing left to print, do nothing and exit.
- say can now take at the same time text from stdin and from the command line argument! It will print the command line args after the stdin text.
terminal_test.sh
- Start/Stop timer separated into functions now.
- Added help text.
- Added ability to select the type of test you want to run.
- Changed some variables.
- Code organisation.
styles/randomstar.style.say
- Spelling corrections.
Full Changelog: 1.1-202209.22.150000...1.2-202209.27.153000
Version 1.1
libsay Version 1.0!
Version 1.0
After more than half month of work I am proudly releasing libsay Version 1.0!
Known Issues:
- Top and Bottom of the box are printed even with empty lines/text. #3
- "DEBUG" words in "non-debug" lines are been interpreted as "DEBUG: " messages. #2
Changelog:
- minor stable releases (point releases) will only contain minor changes or optimizations. That is, changes that don't affect how the lib work and it's commands.
- libsay is now extendable by using styles and draw command extensions.
- Added bottom_c top_c junction and column
draw
commands. (╩
,╦
.╬
,║
) - Added new predefined formatting functions for
title
,notice
andnormal
. - Removed all external dependencies! Now
libsay
is 100% self-sufficient. The following dependencies were removed:awk
,sed
,expr
,tput
,sort
,head
,tail
,tr
and more maybe? - Now
say
is able to take command line arguments when reading a.txt
file.say --colour light_cyan file.txt
- Major internal restructuring.
- Optimizations that gave a 500+% performance gain.
- Added benchmarks and test programs test your shell's and libsay's capabilities.
- Added
repeat_symbol
function/command that repeats any symbol any number of times. - Added many text effects, like underline, strike-through, italics, fade and more.
- Added ability to change the border colour via setting a colour name to the variable
$border_colour
. - Mas refactoring of variable names to reduce the chances of the variables used by
libsay
from conflicting with other system/programs variables. TITLE:
is not longer printed.