Skip to content

se77en/piccolo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piccolo wercker status Build status

Piccolo is a tool that run a command periodically. It can be used both as a command line utility and a library

Piccolo

Installation

$ go get github.com/se77en/piccolo

For Command Line

$ go install piccolo.go

For Application

import github.com/se77en/piccolo/piccolo

Usage

For Command Line

Usage: piccolo <interval> <command>

Examples

piccolo 700ms echo hello

The time can be such as "ns", "us", "ms", "s", "m", "h".

For Application

piccolo.AddTimingFunc("test", -1, func(){fmt.Println("do something")})
piccolo.StartTiming(7 * time.Second)

License

MIT

Releases

No releases published

Packages

No packages published

Languages