mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
chore(schema): correct properties of cache
in segment
This commit is contained in:
parent
0a5e1f6e8e
commit
2c982b2f0d
|
@ -485,20 +485,18 @@
|
||||||
"cache": {
|
"cache": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Cache settings",
|
"title": "Cache settings",
|
||||||
"description": "https://ohmyposh.dev/docs/configuration/cache",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#cache",
|
||||||
"default": {},
|
"default": {},
|
||||||
"properties": {
|
"properties": {
|
||||||
"duration": {
|
"duration": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Cache duration",
|
"title": "Cache duration",
|
||||||
"description": "https://ohmyposh.dev/docs/configuration/cache#duration",
|
"pattern": "^(infinite)|([0-9])+(s|m|h)$"
|
||||||
"default": "^(infinite)|([0-9])+(second|seconds|minute|minutes|hour|hours|day|days|week|weeks|month|months)$",
|
|
||||||
"pattern": "^$"
|
|
||||||
},
|
},
|
||||||
"strategy": {
|
"strategy": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Cache strategy",
|
"title": "Cache strategy",
|
||||||
"description": "https://ohmyposh.dev/docs/configuration/cache#strategy",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#strategy",
|
||||||
"default": "folder",
|
"default": "folder",
|
||||||
"enum": [
|
"enum": [
|
||||||
"folder",
|
"folder",
|
||||||
|
|
Loading…
Reference in a new issue