feat: write tools output also to output file if defined; fix XouTube transcript ' character

This commit is contained in:
Eugen Eisler
2024-10-30 13:50:45 +01:00
parent 3ec4d274c4
commit e17b96d864
5 changed files with 15 additions and 7 deletions

View File

@@ -175,8 +175,7 @@ func Cli(version string) (err error) {
}
if !currentFlags.IsChatRequest() {
// if the pattern flag is not set, we wanted only to grab the transcript or comments
fmt.Println(messageTools)
err = currentFlags.WriteOutput(messageTools)
return
}
}
@@ -202,8 +201,7 @@ func Cli(version string) (err error) {
}
if !currentFlags.IsChatRequest() {
// if the pattern flag is not set, we wanted only to grab the url or get the answer to the question
fmt.Println(messageTools)
err = currentFlags.WriteOutput(messageTools)
return
}
}