1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-25 11:20:01 +00:00
starship/src
Kevin Song addd11e300
refactor(kubernetes): Remove nested Options (#4743)
Kubernetes module was previously a bit messy, with lots of
unnecessarily nested options. Clean this up using filter_map and
find_map, with two major results:

1. `ctx_components` is now a Vec<KubeCtxComponent> instead of a
   Vec<Option<KubeCtxComponent>>. This greatly simplified downstream
   processing of these context components.

2. Instead of storing a partial computation of the namespace in
   variables `kube_ns`, etc, compute them directly in the formatter
   mapping. This is made simpler (read: actually doable) by change 1.
2022-12-20 19:04:40 -06:00
..
configs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
formatter chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
init chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
modules refactor(kubernetes): Remove nested Options (#4743) 2022-12-20 19:04:40 -06:00
test chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
bug_report.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
config.rs fix(config): unrecognized config properties don't cause config error (#4547) 2022-11-20 18:27:48 +01:00
configure.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
context.rs build(deps): upgrade to git-repository v0.27 (#4588) 2022-11-12 17:07:49 +01:00
lib.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
logger.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
main.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
module.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00
print.rs chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
segment.rs refactor: replace ansi_term with nu_ansi_term (#4339) 2022-09-04 18:44:54 +02:00
serde_utils.rs fix(config): unrecognized config properties don't cause config error (#4547) 2022-11-20 18:27:48 +01:00
utils.rs chore: fix clippy warnings for rust 1.66 (#4715) 2022-12-17 18:01:27 +01:00