oh-my-posh/website/docs/segments/argocd.mdx
2023-04-07 10:00:49 +02:00

43 lines
881 B
Plaintext

---
id: argocd
title: ArgoCD Context
sidebar_label: ArgoCD
---
## What
Display the current ArgoCD context name, user and/or server.
## Sample Configuration
import Config from "@site/src/components/Config.js";
<Config
data={{
type: "argocd",
style: "powerline",
powerline_symbol: "\uE0B0",
foreground: "#ffffff",
background: "#FFA400",
template: " {{ .Name }}:{{ .User }}@{{ .Server }} ",
}}
/>
## Template ([info][templates])
:::note default template
```template
{{ .Name }}
```
### Properties
| Name | Type | Description |
| --------- | -------- | --------------------------------- |
| `.Name` | `string` | the current context name |
| `.Server` | `string` | the server of the current context |
| `.User` | `string` | the user of the current context |
[templates]: /docs/configuration/templates