termshell

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package termshell builds the command for an interactive container/pod shell.

Index

Constants

View Source
const Launch = `` /* 416-byte string literal not displayed */

Launch prefers an interactive bash (most images ship it) and falls back to POSIX sh. It sets a sane TERM and, since minimal images carry no terminfo, aliases clear/reset to raw ANSI so screen-clearing works regardless. When the container runs as a UID with no /etc/passwd entry (arbitrary-UID images), it names the user so prompts/tools don't report "I have no name!".

Variables

This section is empty.

Functions

func Command

func Command(request string, tty bool) []string

Command resolves an exec command. An explicit request runs verbatim (split on whitespace); otherwise a TTY session gets the friendly interactive shell and a non-TTY session a plain shell.

func Commands

func Commands(request string, tty bool) [][]string

func DisplayError

func DisplayError(err error) string

func MissingExecutableError

func MissingExecutableError(err error) bool

func WriteExecError

func WriteExecError(w io.Writer, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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