refactor: IStep interface

This commit is contained in:
debugtalk
2021-09-22 18:41:28 +08:00
parent 57a1daf105
commit fe6cca362c
6 changed files with 41 additions and 19 deletions

View File

@@ -61,7 +61,8 @@ type TStep struct {
// interface for all types of steps
type IStep interface {
ToStruct() *TStep
Name() string
Type() string
Run() error
}