package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: May 21, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Copyright © 2022 Roberto Hidalgo <chinampa@un.rob.mx>
SPDX-License-Identifier: Apache-2.0
- Variables
-
func Exec(name string, args []string, env []string, timeout time.Duration, ...) ([]string, cobra.ShellCompDirective, error)
-
func WithSubshell(ctx context.Context, env []string, executable string, args ...string) (bytes.Buffer, bytes.Buffer, error)
ExecFunc is replaced in tests.
Exec runs a subprocess and returns a list of lines from stdout.
WithSubshell is the default runner of subprocesses.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.