Requête de clé de registre Windows
Traduction Bêta Non Officielle
Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →
Description
Affiche le contenu de la clé de registre Windows demandée.
Types de clés de registre pris en charge :
-
SZ(affichée comme valeur chaîne) -
EXPAND_SZ(affichée comme valeur chaîne) -
BINARY(affichée comme valeur chaîne) -
DWORD(affichée en hexadécimal majuscule avec préfixe 0x) -
QWORD(affichée en hexadécimal majuscule avec préfixe 0x)
Exemple de configuration
- json
- yaml
- toml
{
"type": "winreg",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#444444",
"template": " {{ .Value }}",
"options": {
"path": "HKLM\\software\\microsoft\\windows nt\\currentversion\\buildlab",
"fallback": "unknown"
}
}
type: winreg
style: powerline
powerline_symbol:
foreground: "#ffffff"
background: "#444444"
template: " {{ .Value }}"
options:
path: HKLM\software\microsoft\windows nt\currentversion\buildlab
fallback: unknown
type = "winreg"
style = "powerline"
powerline_symbol = ""
foreground = "#ffffff"
background = "#444444"
template = " {{ .Value }}"
[options]
path = "HKLM\\software\\microsoft\\windows nt\\currentversion\\buildlab"
fallback = "unknown"
Options
| Name | Type | Default | Description |
|---|---|---|---|
path | string | registry path to the desired key using backslashes and with a valid root HKEY name. Ending path with \ will get the (Default) key from that path | |
fallback | string | the value to fall back to if no entry is found |
Modèle (info)
template par défaut
{{ .Value }}
Propriétés
| Name | Type | Description |
|---|---|---|
| .Value | string | The result of your query, or fallback if not found. |