mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 23:14:05 -08:00
f891a26fe9
resolves #5171
43 lines
881 B
Plaintext
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
|