Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Resource.WithProcessCommand

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithProcessCommand(
commandName string,
displayName string,
options *ProcessCommandExportOptions,
) Resource

Signature

methodWithProcessCommandbuilder
Adds a command to the resource that starts a local process when invoked.
WithProcessCommand(
commandName string,
displayName string,
options *ProcessCommandExportOptions,
) Resource
commandNamestring
displayNamestring
options*ProcessCommandExportOptions
Resource

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: