Documentation
¶
Overview ¶
Package tty opens the controlling terminal for use as a subprocess's stdin/stderr. This lets interactive prompts (e.g. "Touch your YubiKey...") reach the user even when aws-vault is run as a credential_process subprocess whose stdin/stderr are piped by the parent (aws CLI, kubectl, docker, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open returns file handles suitable for use as a subprocess's stdin and stderr. On unix, both handles are the same /dev/tty fd opened read-write. Callers must defer cleanup() unconditionally. Either or both of in/out may be nil if no controlling terminal is available (headless CI, daemonized process); callers should fall back to inherited descriptors in that case.
Types ¶
This section is empty.