Parse toml docs and tests

This commit is contained in:
Mike Farah
2023-03-24 17:03:18 +11:00
parent f116ef8fd0
commit 732a1e33d5
6 changed files with 191 additions and 12 deletions
+3
View File
@@ -75,6 +75,9 @@ func initCommand(cmd *cobra.Command, args []string) (string, []string, error) {
}
} else if isAutomaticOutputFormat() {
// automatic input worked, we can do it for output too unless specified
if inputFormat == "toml" {
return "", nil, fmt.Errorf("toml is not yet supported as an output format. Please specify another output format using the [--output-format/-o] flag")
}
outputFormat = inputFormat
}
} else if isAutomaticOutputFormat() {