services

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 6 Imported by: 0

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

func ParseLines(raw string) []string

ParseLines splits raw output into lines, stripping empties.

Types

type CommandResult

type CommandResult struct {
	Stdout string
	Stderr string
	Err    error
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL