Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ExecuteCommandResult

Struct
📦 Aspire.Hosting v17.0.0

The result of executing a command. Returned from ExecuteCommand.

type ExecuteCommandResult struct {
Success bool `json:"Success"`
Canceled *bool `json:"Canceled"`
ErrorMessage *string `json:"ErrorMessage"`
Message *string `json:"Message"`
Data *CommandResultData `json:"Data"`
}

Fields

Successbool
A flag that indicates whether the command was successful.
Canceled*booloptional
A flag that indicates whether the command was canceled by the user.
ErrorMessage*stringoptional
An optional error message that can be set when the command is unsuccessful.
Message*stringoptional
An optional message associated with the command result.
Data*CommandResultDataoptional
An optional value produced by the command.