cmd

package
v0.0.0-...-ff9052a Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ExitNoFiles = 2

Variables

This section is empty.

Functions

func FilterUnchanged

func FilterUnchanged(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

FilterUnchanged takes a list of files and a timestamp and returns only those changed since the time.

func FindCodl

func FindCodl(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

FindCodl finds all CODL files (*.codl) in a given directory.

func Repeat

func Repeat(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

Repeats a route at intervals of 'period'.

Params

  • route: The route to repeat
  • period: The time.Duration to wait between executions.

Note: This expects `contex.Get("router"...)` to return a *cookoo.Router.

func Translate

func Translate(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

func Version

func Version(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

func Watch

func Watch(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt)

Watch uses fsnotify to watch for changes to .codl files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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