Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

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().

Applies to

This method applies to the following types: