oh-my-posh/website/docs/segments/argocd.mdx

43 lines
881 B
Plaintext
Raw Normal View History

2023-04-03 03:10:51 -07:00
---
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