Merge branch 'master' of ssh://git.bullercodeworks.com:2200/brian/netcaptain into master
This commit is contained in:
commit
5132c9aa7b
@ -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:
|
||||
* `.Crew.*`
|
||||
* `.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.)
|
||||
|
||||
@ -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.
|
||||
|
||||
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
|
||||
These are simple JSON files that act as key-value stores for anything plundered.
|
||||
|
||||
|
2
build.sh
2
build.sh
@ -6,7 +6,7 @@ trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||
# Echo an error message before exiting
|
||||
trap 'echo "\"${last_command}\" command finished with exit code $?."' EXIT
|
||||
|
||||
# Build chroniclerd binary
|
||||
# Build ncpt binary
|
||||
cd cmd/ncpt
|
||||
go build -o ncpt
|
||||
if [ ! -d ../../build ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user