dacode

package
v0.0.0-...-94a2dde Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 100 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) int

ExitCode returns the process status associated with err. Unclassified errors use status 1, making the zero-configuration behavior useful to callers.

func Run

func Run(ctx context.Context, arguments []string, stdin io.Reader, stdout, stderr io.Writer) error

func RunWithSandboxRegistry

func RunWithSandboxRegistry(ctx context.Context, arguments []string, stdin io.Reader, stdout, stderr io.Writer, sandboxRegistry *dasandbox.Registry) error

RunWithSandboxRegistry runs the command with explicitly linked remote providers. Merely registering or configuring a provider never enables it; callers must also pass --sandbox.

func SilentExit

func SilentExit(err error) bool

SilentExit reports whether the command already rendered its complete user-facing result and only needs the process status propagated.

Types

This section is empty.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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