Programs: shell libraries: Difference between revisions

From wikinotes
No edit summary
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
Bash doesn't exactly have libraries per se, but there are some bash-front ends to libraries  
Bash doesn't exactly have libraries per se, but there are some bash-front ends to libraries
(like curses) that allow you to interact with them from shellscripts.  
(like curses) that allow you to interact with them from shellscripts.


= UI =
= UI =
<blockquote>
{|
{|
|-
| [[dialog (shell)]] || || bash interface for the curses library
|-
|-
| [[bash-oo-framework]] || || really awesome library introducing C/C++ concepts into bash. try/except, etc.
| [[dialog (shell)]] || bash interface for the curses library
|-
| [[bash-oo-framework]] || OOP, exceptions, etc in bash
|-
| [[tput]] || get info from the termcap db
|-
|}
</blockquote><!-- UI -->
 
= Structured Text =
<blockquote>
{|
|-
| [[jq]] || parse json
|-
| [[yq]] || parse yaml
|-
| [[tomlq]] || parse toml
|-
| [[dasel]] || parse json, yaml, toml, xml, csv. no external deps.
|-
| [[csvsql]] || SQL queries to CSV files
|-
|}
</blockquote><!-- Structured Text -->
 
= Testing =
<blockquote>
{|
|-
| [[bats]] || test framework for bash
|-
|-
|}
|}
</blockquote><!-- Testing -->

Latest revision as of 19:53, 23 September 2023

Bash doesn't exactly have libraries per se, but there are some bash-front ends to libraries (like curses) that allow you to interact with them from shellscripts.

UI

dialog (shell) bash interface for the curses library
bash-oo-framework OOP, exceptions, etc in bash
tput get info from the termcap db

Structured Text

jq parse json
yq parse yaml
tomlq parse toml
dasel parse json, yaml, toml, xml, csv. no external deps.
csvsql SQL queries to CSV files

Testing

bats test framework for bash