Skip to content

Commit f1438f5

Browse files
authored
Fixed action injection examples
1 parent fde89e9 commit f1438f5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ let main argv =
368368
rootCommand argv {
369369
description "Data Export"
370370
inputs (connStr, outputDir, startDate, endDate)
371-
setAction (export logger)
371+
setAction (fun () -> export logger)
372372
}
373373
|> Async.AwaitTask
374374
|> Async.RunSynchronously
@@ -569,8 +569,8 @@ let main argv =
569569
description "Database Migrations"
570570
inputs Input.context // Required input for helpAction
571571
helpAction // Show --help if no sub-command is called
572-
addCommand (repairCmd logger)
573-
addCommand (migrateCmd logger)
572+
addCommand (fun () -> repairCmd logger)
573+
addCommand (fun () -> migrateCmd logger)
574574
}
575575
```
576576

0 commit comments

Comments
 (0)