From d479ef88fdb58c3c247e8f758b4eb97dd0e68bca Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 28 Oct 2024 13:59:23 +0100 Subject: [PATCH] refactor: remove unused cache_version references --- src/config/segment_types.go | 2 + src/segments/language.go | 2 - themes/schema.json | 117 -------------------- website/docs/segments/cli/angular.mdx | 1 - website/docs/segments/cli/bazel.mdx | 1 - website/docs/segments/cli/buf.mdx | 1 - website/docs/segments/cli/bun.mdx | 1 - website/docs/segments/cli/cmake.mdx | 1 - website/docs/segments/cli/deno.mdx | 1 - website/docs/segments/cli/flutter.mdx | 1 - website/docs/segments/cli/mvn.mdx | 1 - website/docs/segments/cli/npm.mdx | 1 - website/docs/segments/cli/nx.mdx | 1 - website/docs/segments/cli/pnpm.mdx | 1 - website/docs/segments/cli/quasar.mdx | 1 - website/docs/segments/cli/react.mdx | 1 - website/docs/segments/cli/ui5tooling.mdx | 1 - website/docs/segments/cli/xmake.mdx | 1 - website/docs/segments/cli/yarn.mdx | 1 - website/docs/segments/cloud/azfunc.mdx | 1 - website/docs/segments/cloud/cds.mdx | 1 - website/docs/segments/cloud/cf.mdx | 1 - website/docs/segments/languages/crystal.mdx | 1 - website/docs/segments/languages/dart.mdx | 1 - website/docs/segments/languages/dotnet.mdx | 1 - website/docs/segments/languages/elixir.mdx | 1 - website/docs/segments/languages/golang.mdx | 1 - website/docs/segments/languages/haskell.mdx | 1 - website/docs/segments/languages/java.mdx | 1 - website/docs/segments/languages/julia.mdx | 1 - website/docs/segments/languages/kotlin.mdx | 1 - website/docs/segments/languages/lua.mdx | 1 - website/docs/segments/languages/node.mdx | 1 - website/docs/segments/languages/ocaml.mdx | 1 - website/docs/segments/languages/perl.mdx | 1 - website/docs/segments/languages/php.mdx | 1 - website/docs/segments/languages/python.mdx | 27 +++-- website/docs/segments/languages/r.mdx | 1 - website/docs/segments/languages/ruby.mdx | 1 - website/docs/segments/languages/rust.mdx | 1 - website/docs/segments/languages/swift.mdx | 17 ++- website/docs/segments/languages/vala.mdx | 1 - 42 files changed, 23 insertions(+), 179 deletions(-) diff --git a/src/config/segment_types.go b/src/config/segment_types.go index cd865c1e..8821e42f 100644 --- a/src/config/segment_types.go +++ b/src/config/segment_types.go @@ -334,7 +334,9 @@ func (segment *Segment) MapSegmentWithWriter(env runtime.Environment) error { wrapper := &properties.Wrapper{ Properties: segment.Properties, } + writer.Init(wrapper, env) segment.writer = writer + return nil } diff --git a/src/segments/language.go b/src/segments/language.go index ce607b64..2d54d545 100644 --- a/src/segments/language.go +++ b/src/segments/language.go @@ -98,8 +98,6 @@ const ( LanguageExtensions properties.Property = "extensions" // LanguageFolders the list of folders to validate LanguageFolders properties.Property = "folders" - // CacheVersion allows caching the version number - CacheVersion properties.Property = "cache_version" ) func (l *language) Enabled() bool { diff --git a/themes/schema.json b/themes/schema.json index 1d227488..ca58e66f 100644 --- a/themes/schema.json +++ b/themes/schema.json @@ -54,12 +54,6 @@ "description": "Milliseconds to use for http request timeouts", "default": 20 }, - "cache_version": { - "type": "boolean", - "title": "Cache Version", - "description": "Cache the executable's version or not", - "default": false - }, "expires_in": { "type": "integer", "title": "Expires in", @@ -571,9 +565,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -771,9 +762,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "icon": { "type": "string", "title": "Icon", @@ -843,9 +831,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -896,9 +881,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1055,9 +1037,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1120,9 +1099,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1218,9 +1194,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1513,9 +1486,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "parse_mod_file": { "type": "boolean", "title": "Parse go.mod file", @@ -1571,9 +1541,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1633,9 +1600,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1686,9 +1650,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1738,9 +1699,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1789,9 +1747,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1843,9 +1798,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -1894,9 +1846,6 @@ "missing_command_text": { "$ref": "#/definitions/missing_command_text" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "version_url_template": { "$ref": "#/definitions/version_url_template" }, @@ -1954,9 +1903,6 @@ "missing_command_text": { "$ref": "#/definitions/missing_command_text" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "version_url_template": { "$ref": "#/definitions/version_url_template" }, @@ -2004,9 +1950,6 @@ "missing_command_text": { "$ref": "#/definitions/missing_command_text" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "version_url_template": { "$ref": "#/definitions/version_url_template" }, @@ -2054,9 +1997,6 @@ "missing_command_text": { "$ref": "#/definitions/missing_command_text" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "version_url_template": { "$ref": "#/definitions/version_url_template" }, @@ -2170,9 +2110,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "fetch_package_manager": { "type": "boolean", "title": "Fetch Display Package Manager", @@ -2625,9 +2562,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -2746,9 +2680,6 @@ "description": "Fetch the vite and @quasar/app-vite dependency information or not", "default": true }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -3118,9 +3049,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -3341,9 +3269,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -3392,9 +3317,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -3443,9 +3365,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -3492,9 +3411,6 @@ "missing_command_text": { "$ref": "#/definitions/missing_command_text" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "version_url_template": { "$ref": "#/definitions/version_url_template" }, @@ -3853,9 +3769,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "stack_ghc_mode": { "type": "string", "title": "Use Stack GHC", @@ -3942,9 +3855,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -4025,9 +3935,6 @@ "missing_command_text": { "$ref": "#/definitions/missing_command_text" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "version_url_template": { "$ref": "#/definitions/version_url_template" }, @@ -4079,9 +3986,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -4160,9 +4064,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -4259,9 +4160,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "preferred_executable": { "type": "string", "title": "Preferred Executable", @@ -4321,9 +4219,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -4370,9 +4265,6 @@ "missing_command_text": { "$ref": "#/definitions/missing_command_text" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "version_url_template": { "$ref": "#/definitions/version_url_template" }, @@ -4426,9 +4318,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -4662,9 +4551,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", @@ -4714,9 +4600,6 @@ "version_url_template": { "$ref": "#/definitions/version_url_template" }, - "cache_version": { - "$ref": "#/definitions/cache_version" - }, "extensions": { "type": "array", "title": "Extensions", diff --git a/website/docs/segments/cli/angular.mdx b/website/docs/segments/cli/angular.mdx index 9b142596..013c818f 100644 --- a/website/docs/segments/cli/angular.mdx +++ b/website/docs/segments/cli/angular.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `angular.json` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/bazel.mdx b/website/docs/segments/cli/bazel.mdx index ca82d162..f664464f 100644 --- a/website/docs/segments/cli/bazel.mdx +++ b/website/docs/segments/cli/bazel.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `icon` | `string` | `\ue63a` | the icon for the segment | | `extensions` | `[]string` | `*.bazel, *.bzl, BUILD, WORKSPACE, .bazelrc, .bazelversion` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/buf.mdx b/website/docs/segments/cli/buf.mdx index e787c5c0..a9cc3f88 100644 --- a/website/docs/segments/cli/buf.mdx +++ b/website/docs/segments/cli/buf.mdx @@ -32,7 +32,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `buf.yaml, buf.gen.yaml, buf.work.yaml` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/bun.mdx b/website/docs/segments/cli/bun.mdx index 8ec9c8cf..47acaa36 100644 --- a/website/docs/segments/cli/bun.mdx +++ b/website/docs/segments/cli/bun.mdx @@ -32,7 +32,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `bun.lockb` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/cmake.mdx b/website/docs/segments/cli/cmake.mdx index 3ed5b238..79d9ab8b 100644 --- a/website/docs/segments/cli/cmake.mdx +++ b/website/docs/segments/cli/cmake.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.cmake, CMakeLists.txt` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/deno.mdx b/website/docs/segments/cli/deno.mdx index 1cf8de2f..96c9036b 100644 --- a/website/docs/segments/cli/deno.mdx +++ b/website/docs/segments/cli/deno.mdx @@ -32,7 +32,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.ts, *.js, deno.json` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/flutter.mdx b/website/docs/segments/cli/flutter.mdx index 482114f1..0d8c2724 100644 --- a/website/docs/segments/cli/flutter.mdx +++ b/website/docs/segments/cli/flutter.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.dart, pubspec.yaml, pubspec.yml, pubspec.lock` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | `.dart_tool` | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/mvn.mdx b/website/docs/segments/cli/mvn.mdx index c4032c2a..c446310a 100644 --- a/website/docs/segments/cli/mvn.mdx +++ b/website/docs/segments/cli/mvn.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `pom.xml` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/npm.mdx b/website/docs/segments/cli/npm.mdx index 4a4b764d..c1897255 100644 --- a/website/docs/segments/cli/npm.mdx +++ b/website/docs/segments/cli/npm.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `package.json, package-lock.json` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/nx.mdx b/website/docs/segments/cli/nx.mdx index 76b1f2c6..5a253fca 100644 --- a/website/docs/segments/cli/nx.mdx +++ b/website/docs/segments/cli/nx.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `workspace.json, nx.json` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/pnpm.mdx b/website/docs/segments/cli/pnpm.mdx index 983f955c..d742dd7a 100644 --- a/website/docs/segments/cli/pnpm.mdx +++ b/website/docs/segments/cli/pnpm.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `package.json, pnpm-lock.yaml` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/quasar.mdx b/website/docs/segments/cli/quasar.mdx index ace5900b..349c6601 100644 --- a/website/docs/segments/cli/quasar.mdx +++ b/website/docs/segments/cli/quasar.mdx @@ -36,7 +36,6 @@ import Config from "@site/src/components/Config.js"; | `fetch_dependencies` | `boolean` | `false` | fetch the version number of the `vite` and `@quasar/app-vite` dependencies if present | | `extensions` | `[]string` | `quasar.config, quasar.config.js` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/react.mdx b/website/docs/segments/cli/react.mdx index 3a2f8893..5bed17e7 100644 --- a/website/docs/segments/cli/react.mdx +++ b/website/docs/segments/cli/react.mdx @@ -33,7 +33,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `package.json` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/ui5tooling.mdx b/website/docs/segments/cli/ui5tooling.mdx index cb74a2a0..eac88ef5 100644 --- a/website/docs/segments/cli/ui5tooling.mdx +++ b/website/docs/segments/cli/ui5tooling.mdx @@ -35,7 +35,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*ui5*.y*ml` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cli/xmake.mdx b/website/docs/segments/cli/xmake.mdx index 57d170c4..4e98749c 100644 --- a/website/docs/segments/cli/xmake.mdx +++ b/website/docs/segments/cli/xmake.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `xmake.lua` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([into][templates]) diff --git a/website/docs/segments/cli/yarn.mdx b/website/docs/segments/cli/yarn.mdx index 512c6d62..ab115b9c 100644 --- a/website/docs/segments/cli/yarn.mdx +++ b/website/docs/segments/cli/yarn.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `package.json, yarn.lock` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cloud/azfunc.mdx b/website/docs/segments/cloud/azfunc.mdx index 887f068c..1ea6ee44 100644 --- a/website/docs/segments/cloud/azfunc.mdx +++ b/website/docs/segments/cloud/azfunc.mdx @@ -38,7 +38,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `host.json, local.settings.json, function.json` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cloud/cds.mdx b/website/docs/segments/cloud/cds.mdx index bd48bf12..09bfc321 100644 --- a/website/docs/segments/cloud/cds.mdx +++ b/website/docs/segments/cloud/cds.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `.cdsrc.json, .cdsrc-private.json, *.cds` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/cloud/cf.mdx b/website/docs/segments/cloud/cf.mdx index 859f4cd0..03b11a5d 100644 --- a/website/docs/segments/cloud/cf.mdx +++ b/website/docs/segments/cloud/cf.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `manifest.yml, mta.yaml` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/crystal.mdx b/website/docs/segments/languages/crystal.mdx index a021432e..6b6faed8 100644 --- a/website/docs/segments/languages/crystal.mdx +++ b/website/docs/segments/languages/crystal.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.cr, shard.yml` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/dart.mdx b/website/docs/segments/languages/dart.mdx index db2e4200..79b232be 100644 --- a/website/docs/segments/languages/dart.mdx +++ b/website/docs/segments/languages/dart.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.dart, pubspec.yaml, pubspec.yml, pubspec.lock` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | `.dart_tool` | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/dotnet.mdx b/website/docs/segments/languages/dotnet.mdx index 640ae519..32b46ea1 100644 --- a/website/docs/segments/languages/dotnet.mdx +++ b/website/docs/segments/languages/dotnet.mdx @@ -32,7 +32,6 @@ import Config from '@site/src/components/Config.js'; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.cs, *.csx, *.vb, *.fs, *.fsx, *.sln, *.slnf, *.csproj, *.fsproj, *.vbproj, global.json` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/elixir.mdx b/website/docs/segments/languages/elixir.mdx index 46d7b498..c026288a 100644 --- a/website/docs/segments/languages/elixir.mdx +++ b/website/docs/segments/languages/elixir.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.ex, *.exs` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/golang.mdx b/website/docs/segments/languages/golang.mdx index 5f31b6de..95fb0629 100644 --- a/website/docs/segments/languages/golang.mdx +++ b/website/docs/segments/languages/golang.mdx @@ -35,7 +35,6 @@ import Config from "@site/src/components/Config.js"; | `parse_mod_file` | `boolean` | `false` | parse the go.mod file instead of calling `go version` | | `extensions` | `[]string` | `*.go, go.mod` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/haskell.mdx b/website/docs/segments/languages/haskell.mdx index 0264c1dd..792b116d 100644 --- a/website/docs/segments/languages/haskell.mdx +++ b/website/docs/segments/languages/haskell.mdx @@ -35,7 +35,6 @@ import Config from "@site/src/components/Config.js"; | `stack_ghc_mode` | `string` | `never` | determines when to use `stack ghc` to retrieve the version information. Using `stack ghc` will decrease performance. | | `extensions` | `[]string` | `*.hs, *.lhs, stack.yaml, package.yaml, *.cabal, cabal.project` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/java.mdx b/website/docs/segments/languages/java.mdx index 18ac4813..e285e8f4 100644 --- a/website/docs/segments/languages/java.mdx +++ b/website/docs/segments/languages/java.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.java, *.class, *.gradle, *.jar, *.clj, *.cljr, pom.xml, build.gradle.kts, build.sbt, .java-version, .deps.edn, project.clj, build.boot` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/julia.mdx b/website/docs/segments/languages/julia.mdx index d54f7ff3..0d9187a6 100644 --- a/website/docs/segments/languages/julia.mdx +++ b/website/docs/segments/languages/julia.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.jl` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/kotlin.mdx b/website/docs/segments/languages/kotlin.mdx index cfcfbe27..c759a3ef 100644 --- a/website/docs/segments/languages/kotlin.mdx +++ b/website/docs/segments/languages/kotlin.mdx @@ -36,7 +36,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.kt, *.kts, *.ktm` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/lua.mdx b/website/docs/segments/languages/lua.mdx index edc7eeb2..3b92d8e0 100644 --- a/website/docs/segments/languages/lua.mdx +++ b/website/docs/segments/languages/lua.mdx @@ -35,7 +35,6 @@ import Config from "@site/src/components/Config.js"; | `preferred_executable` | `string` | `lua` | the preferred executable to use when fetching the version | | `extensions` | `[]string` | `*.lua, *.rockspec` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/node.mdx b/website/docs/segments/languages/node.mdx index 3a5d297f..589e3bcb 100644 --- a/website/docs/segments/languages/node.mdx +++ b/website/docs/segments/languages/node.mdx @@ -38,7 +38,6 @@ import Config from "@site/src/components/Config.js"; | `npm_icon` | `string` | `\uE71E` | the icon/text to display when using NPM | | `extensions` | `[]string` | `*.js, *.ts, package.json, .nvmrc, pnpm-workspace.yaml, .pnpmfile.cjs, .vue` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/ocaml.mdx b/website/docs/segments/languages/ocaml.mdx index 2ab52482..9b374759 100644 --- a/website/docs/segments/languages/ocaml.mdx +++ b/website/docs/segments/languages/ocaml.mdx @@ -33,7 +33,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.ml, *.mli, dune, dune-project, dune-workspace` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/perl.mdx b/website/docs/segments/languages/perl.mdx index ad834a2d..e37e805f 100644 --- a/website/docs/segments/languages/perl.mdx +++ b/website/docs/segments/languages/perl.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.pl, *.pm, *.t, .perl-version` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/php.mdx b/website/docs/segments/languages/php.mdx index 25371270..b5960e58 100644 --- a/website/docs/segments/languages/php.mdx +++ b/website/docs/segments/languages/php.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.php, .php-version, composer.json, composer.lock` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/python.mdx b/website/docs/segments/languages/python.mdx index ee6143cb..66db12f8 100644 --- a/website/docs/segments/languages/python.mdx +++ b/website/docs/segments/languages/python.mdx @@ -26,20 +26,19 @@ import Config from "@site/src/components/Config.js"; ## Properties -| Name | Type | Default | Description | -| ---------------------- | :--------: | :---------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not | -| `fetch_virtual_env` | `boolean` | `true` | fetch the name of the virtualenv or not | -| `display_default` | `boolean` | `true` | show the name of the virtualenv when it's default (`system`, `base`) or not | -| `fetch_version` | `boolean` | `true` | fetch the python version | -| `missing_command_text` | `string` | | text to display when the command is missing | -| `display_mode` | `string` | `environment` | | -| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | -| `extensions` | `[]string` | `*.py, *.ipynb, pyproject.toml, venv.bak` | allows to override the default list of file extensions to validate | -| `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | -| `folder_name_fallback` | `boolean` | `true` | instead of `default_venv_names` (case sensitive), use the parent folder name as the virtual environment's name or not | -| `default_venv_names` | `[]string` | `.venv, venv` | allows to override the list of environment's name replaced when `folder_name_fallback` is `true` | +| Name | Type | Default | Description | +| ---------------------- | :--------: | :---------------------------------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not | +| `fetch_virtual_env` | `boolean` | `true` | fetch the name of the virtualenv or not | +| `display_default` | `boolean` | `true` | show the name of the virtualenv when it's default (`system`, `base`) or not | +| `fetch_version` | `boolean` | `true` | fetch the python version | +| `missing_command_text` | `string` | | text to display when the command is missing | +| `display_mode` | `string` | `environment` | | +| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | +| `extensions` | `[]string` | `*.py, *.ipynb, pyproject.toml, venv.bak` | allows to override the default list of file extensions to validate | +| `folders` | `[]string` | | allows to override the list of folder names to validate | +| `folder_name_fallback` | `boolean` | `true` | instead of `default_venv_names` (case sensitive), use the parent folder name as the virtual environment's name or not | +| `default_venv_names` | `[]string` | `.venv, venv` | allows to override the list of environment's name replaced when `folder_name_fallback` is `true` | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/r.mdx b/website/docs/segments/languages/r.mdx index c2448263..3d25ba8f 100644 --- a/website/docs/segments/languages/r.mdx +++ b/website/docs/segments/languages/r.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.R, *.Rmd, *.Rsx, *.Rda, *.Rd, *.Rproj, .Rproj.user` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/ruby.mdx b/website/docs/segments/languages/ruby.mdx index e1bfb810..30383614 100644 --- a/website/docs/segments/languages/ruby.mdx +++ b/website/docs/segments/languages/ruby.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.rb, Rakefile, Gemfile` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/rust.mdx b/website/docs/segments/languages/rust.mdx index c0ae724c..593f2b93 100644 --- a/website/docs/segments/languages/rust.mdx +++ b/website/docs/segments/languages/rust.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.rs, Cargo.toml, Cargo.lock` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/swift.mdx b/website/docs/segments/languages/swift.mdx index 06c8e193..e4c21c9b 100644 --- a/website/docs/segments/languages/swift.mdx +++ b/website/docs/segments/languages/swift.mdx @@ -25,16 +25,15 @@ import Config from "@site/src/components/Config.js"; ## Properties -| Name | Type | Default | Description | -| ---------------------- | :--------: | :----------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not | -| `fetch_version` | `boolean` | `true` | fetch the swift version | -| `missing_command_text` | `string` | | text to display when the command is missing | -| `display_mode` | `string` | `context` | | -| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | +| Name | Type | Default | Description | +| ---------------------- | :--------: | :-------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not | +| `fetch_version` | `boolean` | `true` | fetch the swift version | +| `missing_command_text` | `string` | | text to display when the command is missing | +| `display_mode` | `string` | `context` | | +| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.swift, *.SWIFT, Podfile` | allows to override the default list of file extensions to validate | -| `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | +| `folders` | `[]string` | | allows to override the list of folder names to validate | ## Template ([info][templates]) diff --git a/website/docs/segments/languages/vala.mdx b/website/docs/segments/languages/vala.mdx index ac6884e1..917c7ad6 100644 --- a/website/docs/segments/languages/vala.mdx +++ b/website/docs/segments/languages/vala.mdx @@ -34,7 +34,6 @@ import Config from "@site/src/components/Config.js"; | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `extensions` | `[]string` | `*.vala` | allows to override the default list of file extensions to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate | -| `cache_version` | `boolean` | `false` | cache the executable's version or not | ## Template ([info][templates])