goflow

module
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2017 License: AGPL-3.0

README

Goflow Build Status Coverage Status Go Report Card

Runner

This program provides a command line interface for stepping through a given flow.

% go install github.com/nyaruka/goflow/cmd/flowrunner
% $GOPATH/bin/flowrunner cmd/flowrunner/testdata/flows/two_questions.json

Server

The server provides an HTTP endpoint for stepping through a given flow:

% go install github.com/nyaruka/goflow/cmd/flowserver
% $GOPATH/bin/flowserver

Expression Tester

This utility provides a quick way to test evaluation of expressions which can be used in flows:

% go install github.com/nyaruka/goflow/cmd/exptester
% $GOPATH/bin/exptester '@(10 / 5 >= 2)'
% $GOPATH/bin/exptester '@(TITLE("foo"))'

Running Tests

You can run all the tests (excluding tests in vendor packages) with:

% go test $(go list ./... | grep -v /vendor/)

If you've made changes to the flow server response format, you should regenerate the test files with:

% go test github.com/nyaruka/goflow/cmd/flowrunner -write

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL