Merge branch 'master' of ssh://git.bullercodeworks.com:2200/brian/netcaptain into master

This commit is contained in:
Brian Buller 2020-10-19 08:04:07 -05:00
commit 5132c9aa7b
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@ As you can see, support for `go` templates is built in. While executing the temp
In the examples above we can see these variables: In the examples above we can see these variables:
* `.Crew.*` * `.Crew.*`
* `.Hold.*` * `.Hold.*`
* `.Args.Arg*` * `.Args.Arg.*`
The `Crew` and the `Hold` are loaded if the captain is given a ship to sail. (A ship need not be specified if one named `default` exists in the given configuration.) The `Crew` and the `Hold` are loaded if the captain is given a ship to sail. (A ship need not be specified if one named `default` exists in the given configuration.)
@ -84,6 +84,8 @@ The second `Plunder` rule will trigger on a Quest named `ddg-search`. It's going
Currently, only top-level values in JSON responses can be plundered. Currently, only top-level values in JSON responses can be plundered.
Similarly to Quests, a Ship can easily be edited in whatever editor you have defined in EDITOR by issuing: ncpt -E <ship>
### Hold - Where Plunder is Stored ### Hold - Where Plunder is Stored
These are simple JSON files that act as key-value stores for anything plundered. These are simple JSON files that act as key-value stores for anything plundered.

View File

@ -6,7 +6,7 @@ trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
# Echo an error message before exiting # Echo an error message before exiting
trap 'echo "\"${last_command}\" command finished with exit code $?."' EXIT trap 'echo "\"${last_command}\" command finished with exit code $?."' EXIT
# Build chroniclerd binary # Build ncpt binary
cd cmd/ncpt cd cmd/ncpt
go build -o ncpt go build -o ncpt
if [ ! -d ../../build ]; then if [ ! -d ../../build ]; then