PWB
is a tool that facilitates building Bash-based applications for
displaying and interacting with collections of data.
PWB
is implemented as a Bash builtin command. As a builtin, it can
be invoked in a script without a subprocess penalty, and it can also
call back to other functions in the script.
Within its narrow mission of managing the display of and interaction
with collections, PWB
is very flexible because it displays or executes
items by calling script functions provided by the calling script.
This README file is a limited first draft, primarily concerned with
demonstrating the utility of the tool. There is some documentation in
the form of a man
page, but a more complete tutorial will be
authored at a later date.
I'm still making a collection of sample apps based on this tool, and I'm finding little features that I want to add or change.
Clone the project, the build and install to make PWB
available:
git clone https://github.com/cjungmann/pwb.git
cd pwb
configure
make
sudo make install
The configure script manages the availablity of a few libraries
used by PWB
and its usual companion command, ATE
. In the initial
release, the dependent libraries will be downloaded to a directories
under pwb, built, with instructions for linking to the libraries
copied to the Makefile.
The install Makefile target will install the following:
- Copy the
PWB
shared-object library pwb.so to /usr/local/lib - Copy a collection of mini tools to /usr/local/lib/pwb_sources.d
- Copy scripts enable_pwb and pwb_sources to /usr/local/bin
- Compile and copy man pages pwb.1 and pwb.7 to appropriate directories under /usr/local/share/man.
There is a Makefile uninstall target that removes all of the installed files listed above.
The initial release depends on learning from example
There are several examples in pwb_samples.