oh-my-posh/src
Stefan Hacker 7a73bcff0b feat: enable kubectl segment to read kubeconfig
This extends the kubectl segment to optionally not rely on the
kubectl command and instead to directly parse kubeconfig files like
kubectl does. This is meant as a performance optimization similar
to how the git segment can determine the current branch itself
without calling to git. Especially on Windows and in the presence
other factors slowing process creation like like AntiVirus this
can make shells using the segment considerably more responsive.

The functionality is enabled using the new parse_kubeconfig prop.
It defaults to false to prevent breaking existing users in case
there are any unanticipated behavioral changes.

Additionally the new template properties Cluster and User were
added as they are easily available and helpful in kubectl
setups with more elaborate configuration.
2021-11-26 18:22:40 +01:00
..
font
init fix(cmd): allow all types of path separators 2021-11-19 08:52:38 +01:00
testdata refactor(battery): remove legacy properties 2021-11-25 13:59:36 +01:00
.golangci.yml
.goreleaser.yml feat: add go-releaser 2021-11-25 10:58:30 +01:00
ansi.go
ansi_test.go
block.go fix(palette): create AnsiColors on plain block init 2021-11-22 22:08:21 +01:00
block_test.go chore: remove comments 2021-09-28 20:23:44 +02:00
colors.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
colors_test.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
concurrent_map.go
config.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
config_test.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
console_title.go
console_title_test.go
constants_unix.go
constants_windows64.go
constrants_windows386.go
engine.go feat(cmd): transient prompt 2021-11-19 00:08:17 +01:00
engine_test.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
environment.go feat(windows): registry query segment 2021-11-24 14:24:02 +01:00
environment_cache.go refactor(cache): add correct unit indication 2021-11-23 11:17:37 +01:00
environment_cache_mock_test.go refactor(cache): add correct unit indication 2021-11-23 11:17:37 +01:00
environment_test.go refactor: remove trace struct 2021-11-17 07:19:43 +01:00
environment_unix.go feat(windows): registry query segment 2021-11-24 14:24:02 +01:00
environment_windows.go feat(windows): registry query segment 2021-11-24 14:24:02 +01:00
environment_windows_win32.go feat(windows): registry query segment 2021-11-24 14:24:02 +01:00
go.mod feat: enable kubectl segment to read kubeconfig 2021-11-26 18:22:40 +01:00
go.sum chore(go): update dependencies 2021-11-26 14:25:20 +01:00
httpclient.go feat: adjust source code layout 2020-12-25 20:11:24 +01:00
image.go chore(go): update dependencies 2021-11-26 14:25:20 +01:00
image_test.go chore: adjust powerline symbol to glyph 2021-11-09 13:26:59 +01:00
main.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
main_test.go
palette.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
palette_test.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
properties.go feat(language): add configurable extensions 2021-11-26 13:09:02 +01:00
properties_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
regex.go feat(git): ignore repo based on exclude_folders 2021-10-20 17:12:29 +02:00
regex_test.go feat(git): ignore repo based on exclude_folders 2021-10-20 17:12:29 +02:00
segment.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_angular.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_angular_test.go feat: angular cli segment 2021-10-17 13:30:55 +02:00
segment_aws.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_aws_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_az.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_az_functions.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_az_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_battery.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_battery_test.go refactor(battery): remove legacy properties 2021-11-25 13:59:36 +01:00
segment_command.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_command_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_crystal.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_crystal_test.go
segment_dart.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_dart_test.go
segment_deprecated.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_deprecated_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_dotnet.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_dotnet_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_envar.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_envar_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_executiontime.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_executiontime_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_exit.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_exit_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_git.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_git_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_golang.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_golang_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_java.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_java_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_julia.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_julia_test.go
segment_kubectl.go feat: enable kubectl segment to read kubeconfig 2021-11-26 18:22:40 +01:00
segment_kubectl_test.go feat: enable kubectl segment to read kubeconfig 2021-11-26 18:22:40 +01:00
segment_language.go feat(language): add configurable extensions 2021-11-26 13:09:02 +01:00
segment_language_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_nbgv.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_nbgv_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_nightscout.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_nightscout_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_node.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_node_test.go feat(language): add configurable extensions 2021-11-26 13:09:02 +01:00
segment_os.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_os_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_owm.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_owm_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_path.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_path_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_php.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_php_test.go feat: php language segment 2021-10-27 12:57:15 +02:00
segment_posh_git.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_posh_git_test.go
segment_python.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_python_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_root.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_ruby.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_ruby_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_rust.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_rust_test.go
segment_session.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_session_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_shell.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_shell_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_spotify.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_spotify_darwin.go
segment_spotify_darwin_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_spotify_test.go
segment_spotify_windows.go
segment_spotify_windows_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_spotify_wsl.go fix(wsl): spotify support 2021-10-11 09:02:51 +02:00
segment_spotify_wsl_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_sysinfo.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_sysinfo_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_terraform.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_terraform_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_text.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_text_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_time.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_time_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_wifi.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_wifi_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_winreg.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_winreg_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_ytm.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
segment_ytm_test.go refactor: use properties as map type 2021-11-26 11:11:07 +01:00
template.go
template_test.go
writer_ansi.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
writer_ansi_test.go feat(palette): a map of named color values 2021-11-22 15:25:56 +01:00
writer_plain.go feat: plain text prompt 2021-11-05 09:09:17 +01:00