From 69ac99da02988ad2ed675570ccaa5ff7777f0279 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 21 Feb 2022 12:33:48 +0000 Subject: Ensure that no new console windows are opened on Windows when executing Tesseract --- internal/pipeline/util.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 internal/pipeline/util.go (limited to 'internal/pipeline/util.go') diff --git a/internal/pipeline/util.go b/internal/pipeline/util.go new file mode 100644 index 0000000..092a9ee --- /dev/null +++ b/internal/pipeline/util.go @@ -0,0 +1,16 @@ +// Copyright 2022 Nick White. +// Use of this source code is governed by the GPLv3 +// license that can be found in the LICENSE file. + +// +build !windows + +package pipeline + +import ( + "os/exec" +) + +// HideCmd adds a flag to hide any console window from being +// displayed, if necessary for the platform +func HideCmd(cmd *exec.Cmd) { +} -- cgit v1.2.1-24-ge1ad