Can specify a split expression file #1194

This commit is contained in:
Mike Farah
2022-04-29 11:08:41 +10:00
parent 67c79b7cb1
commit 55c5497fab
4 changed files with 35 additions and 0 deletions
+8
View File
@@ -24,6 +24,14 @@ func initCommand(cmd *cobra.Command, args []string) (string, []string, error) {
return "", nil, err
}
if splitFileExpFile != "" {
splitExpressionBytes, err := os.ReadFile(splitFileExpFile)
if err != nil {
return "", nil, err
}
splitFileExp = string(splitExpressionBytes)
}
// backwards compatibility
if outputToJSON {
outputFormat = "json"