Skip to main content

Aspire

What

Status of your Aspire AppHost in the current repo and whether it is running. The segment uses the Aspire CLI to resolve the AppHost with aspire extension get-apphosts and checks running instances with aspire ps --format json.

Sample Configuration

{
"type": "aspire",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#ffeb3b",
"options": {
"fetch_running": true
},
"template": "  {{ .Name }}{{ if .Running }} {{ end }} "
}

Options

NameTypeDefaultDescription
fetch_runningbooleantruequery aspire ps to determine whether the resolved AppHost is running

Template (info)

default template
\uf423 {{ .Name }}{{ if .Running }} \uf00c{{ end }}

Properties

NameTypeDescription
.AppHostPathstringthe resolved AppHost path reported by the Aspire CLI or file search
.Namestringthe Aspire AppHost display name
.Versionstringthe Aspire Hosting version from Directory.Packages.props
.Langstringthe detected single-file AppHost language (cs or ts)
.Runningbooleanwhether the resolved AppHost currently appears in aspire ps