Documentation
¶
Overview ¶
Package services provides an abstraction over shell command execution.
Package services — parser.go provides output parsing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLines ¶
ParseLines splits raw output into lines, stripping empties.
Types ¶
type CommandResult ¶
CommandResult holds the stdout, stderr, and error from a command.
func RunCommand ¶
func RunCommand(ctx context.Context, dir, name string, args ...string) CommandResult
RunCommand executes a shell command in the given directory and returns the combined result. This thin wrapper enables future mocking and testability.
Click to show internal directories.
Click to hide internal directories.