utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package utils provides utility functions for Berth.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(name string, args ...string) (string, string, error)

RunCommand executes a shell command and returns its stdout and stderr. The `name` parameter is the command to run (e.g., "docker", "podman"). The `args` parameter is a variadic slice of strings representing the arguments to the command. It returns the standard output, standard error, and an error if the command fails to execute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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