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โ
- json
- yaml
- toml
{
"type": "aspire",
"style": "powerline",
"powerline_symbol": "๎ฐ",
"foreground": "#193549",
"background": "#ffeb3b",
"options": {
"fetch_running": true
},
"template": " ๏ฃ {{ .Name }}{{ if .Running }} ๏{{ end }} "
}
type: aspire
style: powerline
powerline_symbol: ๎ฐ
foreground: "#193549"
background: "#ffeb3b"
options:
fetch_running: true
template: " ๏ฃ {{ .Name }}{{ if .Running }} ๏{{ end }} "
type = "aspire"
style = "powerline"
powerline_symbol = "๎ฐ"
foreground = "#193549"
background = "#ffeb3b"
template = " ๏ฃ {{ .Name }}{{ if .Running }} ๏{{ end }} "
[options]
fetch_running = true
Optionsโ
| Name | Type | Default | Description |
|---|---|---|---|
fetch_running | boolean | true | query aspire ps to determine whether the resolved AppHost is running |
Template (info)โ
default template
\uf423 {{ .Name }}{{ if .Running }} \uf00c{{ end }}
Propertiesโ
| Name | Type | Description |
|---|---|---|
.AppHostPath | string | the resolved AppHost path reported by the Aspire CLI or file search |
.Name | string | the Aspire AppHost display name |
.Version | string | the Aspire Hosting version from Directory.Packages.props |
.Lang | string | the detected single-file AppHost language (cs or ts) |
.Running | boolean | whether the resolved AppHost currently appears in aspire ps |