package
8.15.2+incompatible
Repository: https://github.com/elastic/elastic-agent.git
Documentation: pkg.go.dev
# Functions
Confirm shows the confirmation text and ask the user to answer (y/n) default will be shown in uppercase and be selected if the user hits enter returns true for yes, false for no.
NewIOStreams returns an IOStreams with the OS defaults pipes.
NewTestingIOStreams returns a IOStream and the raw bytes buffers so we can interact with them.
ReadInput shows the text and ask the user to provide input.
StringToSlice takes a string retrieve from a flag and return a slices splitted on comma and every element has been trim of space.
# Structs
IOStreams encapsulate the interaction with the OS pipes: STDIN, STDOUT and STDERR.
SyncBuffer is a goroutine safe bytes.Buffer.