process

package
v0.61.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package process constructs external commands using Radius process policies.

In Windows windowless mode, commands default to explicit EOF on stdin. Go's exec.Cmd already connects nil stdin to the null device; this policy makes that default explicit, not a guarantee that arbitrary tools or SDK-owned credential helpers cannot prompt. Callers may still assign finite input to Cmd.Stdin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name string, args ...string) *exec.Cmd

Command returns the Cmd to execute the named program with the given arguments. In windowless mode it defaults stdin to EOF; callers may replace Cmd.Stdin.

func CommandContext

func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd

CommandContext returns the Cmd to execute the named program with the given arguments. The provided context controls the command lifetime. In windowless mode it defaults stdin to EOF; callers may replace Cmd.Stdin.

func IsWindowless added in v0.61.0

func IsWindowless() bool

IsWindowless reports whether Radius is running on Windows without an attached console. Tool adapters can use it to select their own non-interactive behavior. It checks console attachment when called, not during package initialization, and returns false on non-Windows platforms. It does not detect redirected streams or a general cross-platform automation mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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