mow.cli: Index | Files | Directories

package flow

import ""


Package Files


type ExitCode Uses

type ExitCode int

ExitCode is a value used in a call to panic to signify that code execution should be stopped, before/after listeners executed and finally that the app whould exit with the provided exit code

type Step Uses

type Step struct {
    Do      func()
    Success *Step
    Error   *Step
    Desc    string
    Exiter  func(code int)

Step is the building block of execution flow. It has a code block to run, a success step to go to if the former succeeds, or go to an error step otherwise

func (*Step) Run Uses

func (s *Step) Run(p interface{})

Run call the code block of the step, moves to the success step if the call went ok, opr the the error step otherwise



Package flow is imported by 4 packages. Updated 2019-06-03. Refresh now. Tools for package owners.