Versions in this module Expand all Collapse all v0 v0.2.0 Jul 31, 2022 Changes in this version + func Proto(sources, targets []string, options ...ProtoOpt) mghash.Rule type JRule + Dir string + func JDir(dir string) ([]JRule, error) + func JTree(dir string) ([]JRule, error) + type ProtoOpt func(*protoCmd) + func ProtoDirs(dirs ...string) ProtoOpt + func Protoc(name string) ProtoOpt + func ProtocArgs(args ...string) ProtoOpt v0.1.1 Jun 5, 2022 Changes in this version + type DB interface + Add func(context.Context, []byte) error + Has func(context.Context, []byte) (bool, error) + type Fn struct + DB DB + Rule Rule + func (f *Fn) ID() string + func (f *Fn) Name() string + func (f *Fn) Run(ctx context.Context) error + type JRule struct + Command []string + Sources []string + Targets []string + func (jr JRule) ContentHash(_ context.Context) ([]byte, error) + func (jr JRule) RuleHash() []byte + func (jr JRule) Run(ctx context.Context) error + func (jr JRule) String() string + type Rule interface + ContentHash func(context.Context) ([]byte, error) + RuleHash func() []byte + Run func(context.Context) error v0.1.0 Jun 5, 2022