goflow

module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 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"))'

Development

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

% go test github.com/nyaruka/goflow/...

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

If you've made changes to the flow server static files, you should regenerate the statik module with:

% go generate github.com/nyaruka/goflow/cmd/flowserver

Directories

Path Synopsis
cmd
docgen command
exptester command
flowrunner command
flowserver command
gen
gen

Jump to

Keyboard shortcuts

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