mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-12 14:04:05 -08:00
feat(language): allow tweaking version cache
This commit is contained in:
parent
2a05bc8e37
commit
7f97c36adb
5
src/cache/duration.go
vendored
5
src/cache/duration.go
vendored
|
@ -8,12 +8,17 @@ type Duration string
|
|||
|
||||
const (
|
||||
INFINITE = Duration("infinite")
|
||||
NONE = Duration("none")
|
||||
ONEWEEK = Duration("168h")
|
||||
ONEDAY = Duration("24h")
|
||||
TWOYEARS = Duration("17520h")
|
||||
)
|
||||
|
||||
func (d Duration) Seconds() int {
|
||||
if d == NONE {
|
||||
return 0
|
||||
}
|
||||
|
||||
if d == INFINITE {
|
||||
return -1
|
||||
}
|
||||
|
|
8
src/cache/file.go
vendored
8
src/cache/file.go
vendored
|
@ -77,10 +77,16 @@ func (fc *File) Get(key string) (string, bool) {
|
|||
|
||||
// sets the value for the given key with a duration
|
||||
func (fc *File) Set(key, value string, duration Duration) {
|
||||
seconds := duration.Seconds()
|
||||
|
||||
if seconds == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
fc.cache.Set(key, &Entry{
|
||||
Value: value,
|
||||
Timestamp: time.Now().Unix(),
|
||||
TTL: duration.Seconds(),
|
||||
TTL: seconds,
|
||||
})
|
||||
|
||||
fc.dirty = true
|
||||
|
|
|
@ -28,7 +28,10 @@ func (segment *Segment) migrate(version int) {
|
|||
return
|
||||
}
|
||||
|
||||
// Cache settings
|
||||
// Cache settings, the default is now 24h so we have to respect this being disabled previously
|
||||
if !segment.Properties.GetBool("cache_version", false) {
|
||||
segment.Properties[properties.CacheDuration] = cache.NONE
|
||||
}
|
||||
delete(segment.Properties, "cache_version")
|
||||
|
||||
segment.IncludeFolders = segment.migrateFolders(includeFolders)
|
||||
|
|
|
@ -239,7 +239,8 @@ func (l *language) setVersion() error {
|
|||
l.version.Executable = command.executable
|
||||
|
||||
if marchalled, err := json.Marshal(l.version); err == nil {
|
||||
l.env.Cache().Set(cacheKey, string(marchalled), cache.ONEWEEK)
|
||||
duration := l.props.GetString(properties.CacheDuration, string(cache.ONEWEEK))
|
||||
l.env.Cache().Set(cacheKey, string(marchalled), cache.Duration(duration))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
"type": "string",
|
||||
"title": "Cache duration",
|
||||
"description": "The duration for which the segment will be cached. This is parsed using the `time.ParseDuration` function from the Go standard library (see https://pkg.go.dev/time#ParseDuration for details).",
|
||||
"pattern": "^(infinite|([0-9]+(h|m|s))+)$"
|
||||
"pattern": "^(none|infinite|([0-9]+(h|m|s))+)$"
|
||||
},
|
||||
"filler": {
|
||||
"type": "string",
|
||||
|
|
|
@ -116,10 +116,10 @@ The cache property allows you to control how often a segment is refreshed. This
|
|||
generate or when you want to avoid fetching information too often. The cache property is an object with the following
|
||||
properties:
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `duration` | `string` | the duration for which the segment will be cached. The duration is a string in the format `1h2m3s`. The duration is parsed using the [time.ParseDuration](https://golang.org/pkg/time/#ParseDuration) function from the Go standard library |
|
||||
| `strategy` | `string` | the strategy to use to identify if we should show the segment's cache value. See below for more information on strategy |
|
||||
| Name | Type | Description |
|
||||
| ---------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `duration` | `string` | the duration for which the segment will be cached. The duration is a string in the format `1h2m3s`. The duration is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `strategy` | `string` | the strategy to use to identify if we should show the segment's cache value. See below for more information on strategy |
|
||||
|
||||
<Config
|
||||
data={{
|
||||
|
@ -182,6 +182,7 @@ You can also combine these properties:
|
|||
/>
|
||||
|
||||
:::info
|
||||
|
||||
- Oh My Posh will accept both `/` and `\` as path separators for a folder and will match regardless of which
|
||||
is used by the current operating system.
|
||||
- Because the strings are evaluated as regular expressions, if you want to use a backslash (`\`) in a Windows
|
||||
|
@ -236,3 +237,4 @@ To list the currently toggled segments, use `oh-my-posh get toggles`.
|
|||
[cstp]: templates.mdx#cross-segment-template-properties
|
||||
[cache]: #cache
|
||||
[include-exclude]: #include--exclude-folders
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the angular version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the angular version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[angular-cli-docs]: https://angular.io/cli
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the aurelia version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the aurelia version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[aurelia]: https://docs.aurelia.io/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -24,14 +24,15 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :---------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | display the Bazel version - defaults to |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info documentation |
|
||||
| `icon` | `string` | `\ue63a` | the icon for the segment |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | display the Bazel version - defaults to |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info documentation |
|
||||
| `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` | | |
|
||||
|
||||
|
@ -60,3 +61,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[bazel-github]: https://github.com/bazelbuild/bazel
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -23,13 +23,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `buf` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `buf` |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -57,3 +58,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[buf-docs]: https://buf.build/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -23,15 +23,16 @@ 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 active version or not; useful if all you need is an icon indicating `bun` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :---------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `bun` |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
## Template ([info][templates])
|
||||
|
||||
|
@ -57,3 +58,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[bun-docs]: https://bun.sh/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | display the cmake version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | display the cmake version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[cmake-github]: https://github.com/Kitware/CMake
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -23,13 +23,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :---------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `deno` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `deno` |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -57,3 +58,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[deno-docs]: https://deno.land/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-----------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the flutter version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the flutter version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
| `folders` | `[]string` | `.dart_tool` | allows to override the list of folder names to validate |
|
||||
|
||||
## Template ([info][templates])
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[flutter]: https://flutter.dev/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -26,9 +26,10 @@ 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 Maven version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
|
@ -48,7 +49,7 @@ import Config from "@site/src/components/Config.js";
|
|||
### Properties
|
||||
|
||||
| Name | Type | Description |
|
||||
|----------|----------|----------------------------------------------------|
|
||||
| -------- | -------- | -------------------------------------------------- |
|
||||
| `.Full` | `string` | the full version |
|
||||
| `.Major` | `string` | major number |
|
||||
| `.Minor` | `string` | minor number |
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[maven-docs]: https://maven.apache.org
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the NPM version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the NPM version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[npm-docs]: https://docs.npmjs.com/about-npm
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[nx-docs]: https://nx.dev
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -29,6 +29,7 @@ import Config from "@site/src/components/Config.js";
|
|||
| ---------------------- | :--------: | :----------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the PNPM version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[pnpm-docs]: https://pnpm.io
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -26,14 +26,15 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the NPM version |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `fetch_dependencies` | `boolean` | `false` | fetch the version number of the `vite` and `@quasar/app-vite` dependencies if present |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the NPM version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `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 |
|
||||
|
||||
|
@ -70,3 +71,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[quasar-cli]: https://quasar.dev/start/quasar-cli
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -24,13 +24,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the react version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the react version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[react]: https://react.dev/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -26,13 +26,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :----------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the ui5tooling version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the ui5tooling version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -61,3 +62,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[templates]: /docs/configuration/templates
|
||||
[ui5-homepage]: https://sap.github.io/ui5-tooling
|
||||
[ui5-version-help]: https://sap.github.io/ui5-tooling/pages/CLI/#ui5-versions
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :---------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the xmake version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the xmake version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: configuration/templates.mdx
|
||||
[xmake]: https://xmake.io/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -29,6 +29,7 @@ import Config from "@site/src/components/Config.js";
|
|||
| ---------------------- | :--------: | :-----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the Yarn version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[yarn-docs]: https://yarnpkg.com
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -29,13 +29,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :---------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the Azure Functions CLI version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the Azure Functions CLI version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -62,3 +63,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: configuration/templates.mdx
|
||||
[az-func-core-tools]: https://github.com/Azure/azure-functions-core-tools
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :---------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the CDS version |
|
||||
| `missing_command_text` | `string` | `""` | text to display when the cds command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the CDS version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | `""` | text to display when the cds command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: configuration/templates.mdx
|
||||
[sap-cap-cds]: https://cap.cloud.sap/docs/tools/#command-line-interface-cli
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | display the Cloud Foundry CLI version |
|
||||
| `missing_command_text` | `string` | | text to display when the java command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | display the Cloud Foundry CLI version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the java command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[cloud-foundry]: https://github.com/cloudfoundry/cli
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :---------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the crystal version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the crystal version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[crystal]: https://crystal-lang.org/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-----------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the dart version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the dart version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
| `folders` | `[]string` | `.dart_tool` | allows to override the list of folder names to validate |
|
||||
|
||||
## Template ([info][templates])
|
||||
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -10,26 +10,29 @@ Display the currently active [.NET SDK][net-sdk-docs] version.
|
|||
|
||||
## Sample Configuration
|
||||
|
||||
import Config from '@site/src/components/Config.js';
|
||||
import Config from "@site/src/components/Config.js";
|
||||
|
||||
<Config data={{
|
||||
"type": "dotnet",
|
||||
"style": "powerline",
|
||||
"powerline_symbol": "\uE0B0",
|
||||
"foreground": "#000000",
|
||||
"background": "#00ffff",
|
||||
"template": " \uE77F {{ .Full }} "
|
||||
}}/>
|
||||
<Config
|
||||
data={{
|
||||
type: "dotnet",
|
||||
style: "powerline",
|
||||
powerline_symbol: "\uE0B0",
|
||||
foreground: "#000000",
|
||||
background: "#00ffff",
|
||||
template: " \uE77F {{ .Full }} ",
|
||||
}}
|
||||
/>
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :----------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `dotnet` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `dotnet` |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +62,4 @@ import Config from '@site/src/components/Config.js';
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[net-sdk-docs]: https://docs.microsoft.com/en-us/dotnet/core/tools
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-----------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the elixir version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the elixir version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[elixir]: https://elixir-lang.org/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,14 +25,15 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the golang version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `parse_mod_file` | `boolean` | `false` | parse the go.mod file instead of calling `go version` |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the golang version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,14 +25,15 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-------------------------------------------------------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the GHC version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `stack_ghc_mode` | `string` | `never` | determines when to use `stack ghc` to retrieve the version information. Using `stack ghc` will decrease performance.<ul><li>`never`: never use `stack ghc`</li><li>`package`: only use `stack ghc` when `stack.yaml` is in the root of the </li><li>`always`: always use `stack ghc`</li></ul> |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the GHC version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `stack_ghc_mode` | `string` | `never` | determines when to use `stack ghc` to retrieve the version information. Using `stack ghc` will decrease performance.<ul><li>`never`: never use `stack ghc`</li><li>`package`: only use `stack ghc` when `stack.yaml` is in the root of the </li><li>`always`: always use `stack ghc`</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -60,3 +61,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :----------------------------------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the java version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the java version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -57,3 +58,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: configuration/templates.mdx
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,14 +25,15 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the julia version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the julia version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
## Template ([info][templates])
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -27,13 +27,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the kotlin version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the kotlin version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -61,3 +62,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[kotlin]: https://kotlinlang.org/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,14 +25,15 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-----------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the lua version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `preferred_executable` | `string` | `lua` | the preferred executable to use when fetching the version<ul><li>`lua`: the Lua executable (**default**)</li><li>`luajit`: the LuaJIT executable</li></ul> |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the lua version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `preferred_executable` | `string` | `lua` | the preferred executable to use when fetching the version<ul><li>`lua`: the Lua executable (**default**)</li><li>`luajit`: the LuaJIT executable</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -62,3 +63,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[templates]: /docs/configuration/templates
|
||||
[lua]: https://www.lua.org/
|
||||
[luajit]: https://luajit.org/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,17 +25,18 @@ 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 equal to `default` or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the Mojo version or not |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `environment` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`environment`: the segment is only displayed when in a virtual environment</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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` | `*.🔥, *.mojo, mojoproject.toml` | allows to override the default list of file extensions to validate |
|
||||
| `folders` | `[]string` | | allows to override the list of folder names to validate |
|
||||
| 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 equal to `default` or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the Mojo version or not |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `environment` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`environment`: the segment is only displayed when in a virtual environment</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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` | `*.🔥, *.mojo, mojoproject.toml` | allows to override the default list of file extensions to validate |
|
||||
| `folders` | `[]string` | | allows to override the list of folder names to validate |
|
||||
|
||||
## Template ([info][templates])
|
||||
|
||||
|
@ -62,3 +63,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[templates]: /docs/configuration/templates
|
||||
[mojo]: https://docs.modular.com/mojo
|
||||
[magic]: https://docs.modular.com/magic
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,17 +25,18 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ----------------------- | :--------: | :--------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the Node.js version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `fetch_package_manager` | `boolean` | `false` | define if the current project uses PNPM, Yarn, or NPM |
|
||||
| `pnpm_icon` | `string` | `\uF02C1` | the icon/text to display when using PNPM |
|
||||
| `yarn_icon` | `string` | `\uF011B` | the icon/text to display when using Yarn |
|
||||
| `npm_icon` | `string` | `\uE71E` | the icon/text to display when using NPM |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the Node.js version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `fetch_package_manager` | `boolean` | `false` | define if the current project uses PNPM, Yarn, or NPM |
|
||||
| `pnpm_icon` | `string` | `\uF02C1` | the icon/text to display when using PNPM |
|
||||
| `yarn_icon` | `string` | `\uF011B` | the icon/text to display when using Yarn |
|
||||
| `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 |
|
||||
|
||||
|
@ -66,3 +67,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[node-js]: https://nodejs.org
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -24,13 +24,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-----------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | display the ocaml version (`ocaml -version`) |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | display the ocaml version (`ocaml -version`) |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[OCaml]: https://ocaml.org/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the perl version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the perl version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -56,3 +57,4 @@ import Config from "@site/src/components/Config.js";
|
|||
| `.Error` | `string` | error encountered when fetching the version string |
|
||||
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the php version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the php version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -32,6 +32,7 @@ import Config from "@site/src/components/Config.js";
|
|||
| `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 |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `environment` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`environment`: the segment is only displayed when in a virtual environment</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
|
@ -64,3 +65,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :----------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the R version or not |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the R version or not |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[r-homepage]: https://www.r-project.org/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the ruby version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the ruby version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -54,3 +55,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :----------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the rust version (`rustc --version`) |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the rust version (`rustc --version`) |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -29,6 +29,7 @@ import Config from "@site/src/components/Config.js";
|
|||
| ---------------------- | :--------: | :-------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the swift version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
|
@ -59,3 +60,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[swift]: https://www.swift.org/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -25,13 +25,14 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------------- | :--------: | :-------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the vala version |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the vala version |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `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 |
|
||||
|
||||
|
@ -58,3 +59,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[vala]: https://vala.dev/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -19,7 +19,8 @@ import Config from "@site/src/components/Config.js";
|
|||
powerline_symbol: "\ue0b0",
|
||||
foreground: "#342311",
|
||||
background: "#ffad55",
|
||||
template: " \ue6a9 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
|
||||
template:
|
||||
" \ue6a9 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
|
||||
}}
|
||||
/>
|
||||
|
||||
|
@ -29,6 +30,7 @@ import Config from "@site/src/components/Config.js";
|
|||
| ---------------------- | :--------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
|
||||
| `fetch_version` | `boolean` | `true` | fetch the zig version (`zig version`) |
|
||||
| `cache_duration` | `string` | `24h` | the duration for which the version will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
|
@ -62,3 +64,4 @@ import Config from "@site/src/components/Config.js";
|
|||
[go-text-template]: https://golang.org/pkg/text/template/
|
||||
[templates]: /docs/configuration/templates
|
||||
[zig]: https://ziglang.org/
|
||||
[time.ParseDuration]: https://golang.org/pkg/time/#ParseDuration
|
||||
|
|
|
@ -26,9 +26,9 @@ import Config from "@site/src/components/Config.js";
|
|||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------- | :------: | :-----: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `cache_duration` | `string` | `168h` | the duration for which the segment will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------------- | :------: | :-----: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `cache_duration` | `string` | `168h` | the duration for which the segment will be cached. The duration is a string in the format `1h2m3s` and is parsed using the [time.ParseDuration] function from the Go standard library. To disable the cache, use `none` |
|
||||
|
||||
## Template ([info][templates])
|
||||
|
||||
|
|
Loading…
Reference in a new issue