Documentation ¶ Index ¶ type Context func (c *Context) DoRequest(writer Writer, req rq.Request) error func (ctx *Context) FilterRequests(requests []rq.Request) []rq.Request type DirCmd func (cmd *DirCmd) Run(ctx *Context) error type FileCmd func (cmd *FileCmd) Run(ctx *Context) error type Writer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Context ¶ type Context struct { Debug bool EnvVars map[string]string EnvFile string Path string NameEquals *string RegexPattern *regexp.Regexp Args []string RequestContext *rq.RequestContext } func (*Context) DoRequest ¶ func (c *Context) DoRequest(writer Writer, req rq.Request) error func (*Context) FilterRequests ¶ func (ctx *Context) FilterRequests(requests []rq.Request) []rq.Request type DirCmd ¶ type DirCmd struct { Path string `arg:"" name:"path" help:"Path to the directory." type:"string"` FilePattern string `name:"file-pattern" short:"P" help:"Only run requests with names that match the regex pattern" type:"string" default:".*"` } func (*DirCmd) Run ¶ func (cmd *DirCmd) Run(ctx *Context) error type FileCmd ¶ type FileCmd struct { Path string `arg:"" name:"path" help:"Path to file." type:"string"` } func (*FileCmd) Run ¶ func (cmd *FileCmd) Run(ctx *Context) error type Writer ¶ type Writer interface { io.StringWriter io.Writer } Source Files ¶ View all Source files context.go dir.go file.go Click to show internal directories. Click to hide internal directories.