Skip to content

Commit 2a92b70

Browse files
authored
feat: better functional options (#2147)
1 parent 4736bc2 commit 2a92b70

File tree

6 files changed

+707
-543
lines changed

6 files changed

+707
-543
lines changed

cmd/task/task.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ func run() error {
114114
}
115115

116116
e := task.NewExecutor(
117-
flags.WithExecutorOptions(),
118-
task.ExecutorWithVersionCheck(true),
117+
flags.WithFlags(),
118+
task.WithVersionCheck(true),
119119
)
120120
if err := e.Setup(); err != nil {
121121
return err

0 commit comments

Comments
 (0)