Documentation ¶
Index ¶
- Variables
- func Help(t *Task) (string, error)
- func Jim(ctx context.Context, args []string) error
- func Run(ctx context.Context, t *Task) error
- func Stderr(ctx context.Context) io.Writer
- func Stdin(ctx context.Context) io.Reader
- func Stdout(ctx context.Context) io.Writer
- type Erry
- type Iny
- type Outy
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = ""
Version of jim
Functions ¶
func Stderr ¶ added in v0.2.0
Stderr retuns an io.Writer representing the stderr. If the ctx implements Erry that is returned. If the ctx.Value("stderr") is present, and an io.Writer, that is returned. If no other io.Writer is found, then os.Stderr is returned.
func Stdin ¶ added in v0.2.0
Stdin retuns an io.Reader representing the stdin. If the ctx implements Iny that is returned. If the ctx.Value("stdin") is present, and an io.Reader, that is returned. If no other io.Reader is found, then os.Stdin is returned.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.