diff options
author | Nick White <git@njw.name> | 2022-02-21 12:33:48 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-02-21 12:33:48 +0000 |
commit | 69ac99da02988ad2ed675570ccaa5ff7777f0279 (patch) | |
tree | aac4a7b560d0f0e3ee79f8061c0ec74b6d00fb5b /internal/pipeline/util.go | |
parent | 066884ddf4a160baec7c8f3d0974d7aeca1eec6b (diff) |
Ensure that no new console windows are opened on Windows when executing Tesseract
Diffstat (limited to 'internal/pipeline/util.go')
-rw-r--r-- | internal/pipeline/util.go | 16 |
1 files changed, 16 insertions, 0 deletions
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) { +} |