1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-03 00:50:50 +00:00
starship/src
Thomas O'Donnell e3b5dff352
feat(k8s): Add detect env vars option (#4488)
* feat(k8s): Add detect env vars option

Have added the option to trigger the k8s module based on what env vars
are set, this has been done in a backwards compatible way so if nothing
is changed from the defaults the module will still behave the same way
as before. This is similar to what I did in #4486 for the python module
and if goes well I'd like to rollout to other modules.

* Update src/modules/kubernetes.rs

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Update src/modules/kubernetes.rs

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-04-06 15:30:19 +02:00
..
configs feat(k8s): Add detect env vars option (#4488) 2024-04-06 15:30:19 +02:00
formatter chore: handle rust 1.72 clippy & fmt changes (#5399) 2023-08-25 22:53:35 +02:00
init fix(bash): use eval instead of a procsub for the POSIX mode (#5020) 2024-04-02 10:45:02 +02:00
modules feat(k8s): Add detect env vars option (#4488) 2024-04-06 15:30:19 +02:00
test fix(status): fix pipestatus width calculation (#5036) 2024-03-20 22:58:33 +01:00
bug_report.rs fix: replace unmaintained crates yaml-rust, dirs-next (#5887) 2024-03-29 12:14:57 +01:00
config.rs chore: handle rust 1.72 clippy & fmt changes (#5399) 2023-08-25 22:53:35 +02:00
configure.rs build(deps): update toml crates (#5842) 2024-03-20 18:56:20 +09:00
context_env.rs chore: fix upcoming rust 1.77 clippy issues and chrono deprecations (#5850) 2024-03-20 18:57:14 +09:00
context.rs chore: fix upcoming rust 1.77 clippy issues and chrono deprecations (#5850) 2024-03-20 18:57:14 +09:00
lib.rs fix(config): Make print-config not panic without a config (#5001) 2023-04-13 19:29:21 -05:00
logger.rs fix: replace unmaintained crates yaml-rust, dirs-next (#5887) 2024-03-29 12:14:57 +01:00
main.rs chore: apply new rust 1.75 & nightly clippy fixes (#5646) 2023-12-30 17:29:37 +01:00
module.rs fix: combine ANSI color codes before wrapping them (#5762) 2024-04-06 15:28:26 +02:00
print.rs fix: combine ANSI color codes before wrapping them (#5762) 2024-04-06 15:28:26 +02:00
segment.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
serde_utils.rs build(deps): update toml crates (#4853) 2023-01-30 23:12:27 +01:00
utils.rs fix: combine ANSI color codes before wrapping them (#5762) 2024-04-06 15:28:26 +02:00