Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Resource.WithTerminal

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithTerminal(options ...*WithTerminalOptions) Resource

Signature

methodWithTerminalbuilder
Adds an interactive terminal session to a resource with an optional callback to configure its initial dimensions.
WithTerminal(options ...*WithTerminalOptions) Resource
options...*WithTerminalOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithTerminalOptions argument.

Configurefunc(obj *TerminalOptions)callbackAn optional callback to configure the terminal options.
Resource

A reference to the IResourceBuilder for chaining additional configuration.

Returns a handle; failures surface later via Err().

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: