func NewConsoleWithOptions(options UIOptions, writers ...io.Writer) (*expect.Console, terminal.UI, error) {
	console, err := expect.NewConsole(expect.WithStdout(writers...))
	if err != nil {
		return nil, nil, err
	}

	ui := ui{terminal.NewUI(
		newUIConfig(options),
		console.Tty(),
		console.Tty(),
		console.Tty(),
	), options.OpenBrowserFn}

	return console, ui, nil
}
// NewConsoleWithOptions creates a new *expect.Console
// along with its corresponding mock terminal UI based on the provided options
NewConsoleWithOptions creates a new *expect.Console
along with its corresponding mock terminal UI based on the provided options
// NewConsoleWithOptions creates a new * expect . Console // along with its corresponding mock terminal UI based on the provided options
func NewConsoleWithOptions(options UIOptions, writers ...io.Writer) (*expect.Console, terminal.UI, error) {
	console, err := expect.NewConsole(expect.WithStdout(writers...))
	if err != nil {
		return nil, nil, err
	}
	ui := ui{terminal.NewUI(
		newUIConfig(options),
		console.Tty(),
		console.Tty(),
		console.Tty(),
	), options.OpenBrowserFn}
	return console, ui, nil
}
func NewConsoleWithOptions ( options UIOptions , writers ... io . Writer ) ( * expect . Console , terminal . UI , error ) { console , err := expect . NewConsole ( expect . WithStdout ( writers ... ) ) if err != nil { return nil , nil , err } ui := ui { terminal . NewUI ( newUIConfig ( options ) , console . Tty ( ) , console . Tty ( ) , console . Tty ( ) , ) , options . OpenBrowserFn } return console , ui , nil }
NewConsoleWithOptions creates a new *expect.Console
along with its corresponding mock terminal UI based on the provided options
NewConsoleWithOptions creates a new * expect . Console along with its corresponding mock terminal UI based on the provided options