Releases: goyek/goyek
Releases · goyek/goyek
0.5.0
Added
- Add the stack trace when a task panics.
Changed
- Names of parameters now have to follow
goyek.ParamNamePattern
.
They were allowed to start with an underscore (_
), and now no longer are. - The PowerShell wrapper scripts
goyek.ps1
better handlesstderr
redirection.
0.4.0
0.3.0
The repository has migrated to https://github.com/goyek/goyek.
This release contains multiple breaking changes for both the CLI and the Go API.
The biggest change is a redesign of the parameters API, so they have to be explicitly registered.
It makes the usage of the parameters more controlled and provides a better help output.
Moreover, the parameters are set via CLI using the flag syntax.
Added
- Help is printed when
-h
,--help
orhelp
is passed. - Help contains parameters' information.
- The tasks and parameters can be passed via CLI in any order.
Taskflow.Run
handlesnil
passed ascontext.Context
argument.Taskflow.Run
panics when a registered parameter is not assigned to any task.
Changed
- Module path changed to
github.com/goyek/goyek
. - Rename package
task
togoyek
. - Use the flag syntax for setting parameters via CLI.
- Rename
Task.Description
field toUsage
. - Rename
Task.Dependencies
field toDeps
. - Rename
CodeFailure
constant toCodeFail
. - Rename
Taskflow.MustRegister
method toRegister
and remove previousTaskflow.Register
implementation. - Remove
Taskflow.Params
field andTF.Params
method, addTaskflow.Register*Param
methods andTask.Params
field instead. - Remove
TF.Verbose
, addTaskflow.VerboseParam
instead. - Remove
New
function, create instance using&Taskflow{}
instead. - Unexport
Runner
type, useTaskflow
in tests instead. - Enforce patterns for task names (
TaskNamePattern
) and parameter names (ParamNamePattern
). - Drop official support for Go 1.10.