cmdexec

package
v0.1.0-beta.69 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCLICommand

func RunCLICommand(ctx context.Context, name string, args ...string) (string, error)

RunCLICommand - for direct CLI tool execution (no shell interpretation)

func RunCLICommandInDir

func RunCLICommandInDir(ctx context.Context, workDir, name string, args ...string) error

RunCLICommandInDir executes a CLI command directly with streamed output and no shell parsing.

func RunCLICommandWithOptions

func RunCLICommandWithOptions(ctx context.Context, opts CLICommandOptions, name string, args ...string) (string, error)

RunCLICommandWithOptions executes a CLI command directly and returns captured stdout.

func RunCommand

func RunCommand(ctx context.Context, command, workDir string) error

RunShellCommand - for shell commands with pipes, variables, etc.

func RunCommandWithOutput

func RunCommandWithOutput(ctx context.Context, command, workDir string) (string, error)

RunShellCommandWithOutput - shell command that returns output

Types

type CLICommandOptions

type CLICommandOptions struct {
	WaitMessage string
	WaitDelay   time.Duration
}

Jump to

Keyboard shortcuts

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